fix: fixes nightly tests (#8194)

This commit is contained in:
Lucas Oliveira 2025-05-23 12:44:02 -03:00 committed by GitHub
commit 5872826985
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 12 deletions

View file

@ -95,8 +95,9 @@ test(
// Select first action
await page
.locator('input[data-ref="eInput"]')
.nth(rowsCount + 1)
.click();
.last()
.scrollIntoViewIfNeeded();
await page.locator('input[data-ref="eInput"]').last().click();
await page.waitForTimeout(1000);
await page
@ -107,7 +108,7 @@ test(
const isLastChecked = await page
.locator('input[data-ref="eInput"]')
.nth(rowsCount + 1)
.last()
.isChecked();
expect(isLastChecked).toBeTruthy();

View file

@ -25,8 +25,12 @@ test(
await page.getByTestId("button_run_text input").click();
});
await page.waitForSelector("text=built successfully", { timeout: 30000 });
await page.waitForSelector("text=Running", {
timeout: 30000,
state: "visible",
});
await page.waitForSelector("text=built successfully", { timeout: 30000 });
await page.getByTestId("notification_button").click();
// Add explicit waits before checking visibility
@ -35,10 +39,6 @@ test(
state: "visible",
});
await page.waitForSelector("text=Running", {
timeout: 30000,
state: "visible",
});
// Then check visibility
const notificationsText = page
.getByText("Notifications", { exact: true })
@ -48,9 +48,6 @@ test(
const trashIcon = page.getByTestId("icon-Trash2").last();
await expect(trashIcon).toBeVisible();
const runningComponentsText = page.getByText("Running").last();
await expect(runningComponentsText).toBeVisible();
const builtSuccessfullyText = page
.getByText("Flow built successfully", { exact: true })
.last();

View file

@ -39,7 +39,7 @@ test(
await page.getByTestId("side_nav_options_all-templates").click();
await page.getByRole("heading", { name: "Basic Prompting" }).click();
await page.waitForSelector("text=playground", { timeout: 30000 });
await page.waitForSelector("text=publish", { timeout: 30000 });
await page.waitForSelector("text=share", { timeout: 30000 });
await expect(page.getByTestId("button_run_chat output")).toBeVisible({
timeout: 30000,