Refactor: remove timeouts from generalbugs-shard10 (#5140)

remove timeouts from generalbugs-shard10
This commit is contained in:
anovazzi1 2024-12-07 12:18:44 -03:00 committed by GitHub
commit aa7ebb4ae3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,6 @@ test(
}
await page.goto("/");
await page.waitForTimeout(1000);
const promptText = "answer as you are a dog";
const newPromptText = "answer as you are a bird";
@ -33,13 +32,17 @@ 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.getByTestId("side_nav_options_all-templates").click();
await page.getByRole("heading", { name: "Basic Prompting" }).click();
await page.waitForTimeout(1000);
await page.waitForSelector('[data-testid="fit_view"]', {
timeout: 3000,
});
await page.getByTestId("fit_view").click();
@ -70,8 +73,6 @@ test(
await page.getByText("Check & Save").click();
await page.waitForTimeout(1000);
await page.getByTestId("button_run_chat output").click();
await page.waitForSelector("text=built successfully", { timeout: 30000 });
@ -84,7 +85,6 @@ test(
const concatAllText = textContents.join(" ");
await page.waitForTimeout(1000);
await page.getByText("Close").last().click();
await page.getByText("Prompt", { exact: true }).click();
@ -92,7 +92,6 @@ test(
await page.getByText("Freeze", { exact: true }).last().click();
await page.waitForTimeout(1000);
await page.locator('//*[@id="react-flow-id"]').click();
expect(page.getByTestId("icon-Snowflake").first()).toBeVisible();