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:
parent
fe4acf419b
commit
78bd6962aa
1 changed files with 6 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue