refator: fix import statement and wait timeout in starter-projects.spec.ts (#4827)
* fix: Update import statement in starter-projects.spec.ts * fix: Update wait timeout in starter-projects.spec.ts
This commit is contained in:
parent
87e5b86f48
commit
e2b947bcb2
1 changed files with 8 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
const { test, expect } = require("@playwright/test");
|
import { expect, test } from "@playwright/test";
|
||||||
|
|
||||||
test(
|
test(
|
||||||
"vector store from starter projects should have its connections and nodes on the flow",
|
"vector store from starter projects should have its connections and nodes on the flow",
|
||||||
|
|
@ -72,14 +72,13 @@ test(
|
||||||
modalCount = await page.getByTestId("modal-title")?.count();
|
modalCount = await page.getByTestId("modal-title")?.count();
|
||||||
}
|
}
|
||||||
|
|
||||||
await page.getByTestId("side_nav_options_all-templates").click();
|
while (modalCount === 0) {
|
||||||
await page
|
await page.getByText("New Flow", { exact: true }).click();
|
||||||
.getByRole("heading", { name: "Vector Store RAG" })
|
await page.waitForSelector('[data-testid="modal-title"]', {
|
||||||
.first()
|
timeout: 3000,
|
||||||
.click();
|
});
|
||||||
await page.waitForSelector('[data-testid="fit_view"]', {
|
modalCount = await page.getByTestId("modal-title")?.count();
|
||||||
timeout: 100000,
|
}
|
||||||
});
|
|
||||||
|
|
||||||
await page.getByTestId("fit_view").click();
|
await page.getByTestId("fit_view").click();
|
||||||
await page.getByTestId("zoom_out").click();
|
await page.getByTestId("zoom_out").click();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue