refactor: Enhance flowSettings.spec.ts with improved element selectors and timeouts (#5072)

test: Enhance flowSettings.spec.ts with improved element selectors and timeouts
This commit is contained in:
anovazzi1 2024-12-05 21:21:57 -03:00 committed by GitHub
commit 78bd6962aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,14 +25,18 @@ test(
while (modalCount === 0) {
await page.getByText("New Flow", { exact: true }).click();
await page.waitForTimeout(3000);
await page.waitForSelector('[data-testid="modal-title"]', {
timeout: 3000,
});
modalCount = await page.getByTestId("modal-title")?.count();
}
await page.waitForSelector('[data-testid="blank-flow"]', {
timeout: 30000,
});
await page.getByTestId("blank-flow").click();
await page.waitForTimeout(1000);
await page.waitForSelector('[data-testid="flow_name"]', {
timeout: 3000,
});
await page.getByTestId("flow_name").click();
await page.getByText("Flow Settings").first().click();