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:
anovazzi1 2024-11-25 19:07:05 -03:00 committed by GitHub
commit e2b947bcb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
const { test, expect } = require("@playwright/test");
import { expect, test } from "@playwright/test";
test(
"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();
}
await page.getByTestId("side_nav_options_all-templates").click();
await page
.getByRole("heading", { name: "Vector Store RAG" })
.first()
.click();
await page.waitForSelector('[data-testid="fit_view"]', {
timeout: 100000,
});
while (modalCount === 0) {
await page.getByText("New Flow", { exact: true }).click();
await page.waitForSelector('[data-testid="modal-title"]', {
timeout: 3000,
});
modalCount = await page.getByTestId("modal-title")?.count();
}
await page.getByTestId("fit_view").click();
await page.getByTestId("zoom_out").click();