Refactor: Improve wait times and visibility checks in twoEdges.spec.ts (#5109)
This commit is contained in:
parent
c26a2d82e8
commit
b682a26c26
1 changed files with 3 additions and 3 deletions
|
|
@ -25,13 +25,13 @@ test(
|
||||||
|
|
||||||
while (modalCount === 0) {
|
while (modalCount === 0) {
|
||||||
await page.getByText("New Flow", { exact: true }).click();
|
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();
|
modalCount = await page.getByTestId("modal-title")?.count();
|
||||||
}
|
}
|
||||||
await page.waitForTimeout(1000);
|
|
||||||
|
|
||||||
await page.getByText("Vector Store RAG", { exact: true }).last().click();
|
await page.getByText("Vector Store RAG", { exact: true }).last().click();
|
||||||
await page.waitForTimeout(3000);
|
|
||||||
await page.getByText("Retriever", { exact: true }).first().isVisible();
|
await page.getByText("Retriever", { exact: true }).first().isVisible();
|
||||||
await page.getByText("Search Results", { exact: true }).first().isVisible();
|
await page.getByText("Search Results", { exact: true }).first().isVisible();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue