fix: fixes nightly tests (#8194)
This commit is contained in:
parent
70b8f29099
commit
5872826985
3 changed files with 10 additions and 12 deletions
|
|
@ -95,8 +95,9 @@ test(
|
||||||
// Select first action
|
// Select first action
|
||||||
await page
|
await page
|
||||||
.locator('input[data-ref="eInput"]')
|
.locator('input[data-ref="eInput"]')
|
||||||
.nth(rowsCount + 1)
|
.last()
|
||||||
.click();
|
.scrollIntoViewIfNeeded();
|
||||||
|
await page.locator('input[data-ref="eInput"]').last().click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
|
||||||
await page
|
await page
|
||||||
|
|
@ -107,7 +108,7 @@ test(
|
||||||
|
|
||||||
const isLastChecked = await page
|
const isLastChecked = await page
|
||||||
.locator('input[data-ref="eInput"]')
|
.locator('input[data-ref="eInput"]')
|
||||||
.nth(rowsCount + 1)
|
.last()
|
||||||
.isChecked();
|
.isChecked();
|
||||||
|
|
||||||
expect(isLastChecked).toBeTruthy();
|
expect(isLastChecked).toBeTruthy();
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,12 @@ test(
|
||||||
await page.getByTestId("button_run_text input").click();
|
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();
|
await page.getByTestId("notification_button").click();
|
||||||
|
|
||||||
// Add explicit waits before checking visibility
|
// Add explicit waits before checking visibility
|
||||||
|
|
@ -35,10 +39,6 @@ test(
|
||||||
state: "visible",
|
state: "visible",
|
||||||
});
|
});
|
||||||
|
|
||||||
await page.waitForSelector("text=Running", {
|
|
||||||
timeout: 30000,
|
|
||||||
state: "visible",
|
|
||||||
});
|
|
||||||
// Then check visibility
|
// Then check visibility
|
||||||
const notificationsText = page
|
const notificationsText = page
|
||||||
.getByText("Notifications", { exact: true })
|
.getByText("Notifications", { exact: true })
|
||||||
|
|
@ -48,9 +48,6 @@ test(
|
||||||
const trashIcon = page.getByTestId("icon-Trash2").last();
|
const trashIcon = page.getByTestId("icon-Trash2").last();
|
||||||
await expect(trashIcon).toBeVisible();
|
await expect(trashIcon).toBeVisible();
|
||||||
|
|
||||||
const runningComponentsText = page.getByText("Running").last();
|
|
||||||
await expect(runningComponentsText).toBeVisible();
|
|
||||||
|
|
||||||
const builtSuccessfullyText = page
|
const builtSuccessfullyText = page
|
||||||
.getByText("Flow built successfully", { exact: true })
|
.getByText("Flow built successfully", { exact: true })
|
||||||
.last();
|
.last();
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ test(
|
||||||
await page.getByTestId("side_nav_options_all-templates").click();
|
await page.getByTestId("side_nav_options_all-templates").click();
|
||||||
await page.getByRole("heading", { name: "Basic Prompting" }).click();
|
await page.getByRole("heading", { name: "Basic Prompting" }).click();
|
||||||
await page.waitForSelector("text=playground", { timeout: 30000 });
|
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({
|
await expect(page.getByTestId("button_run_chat output")).toBeVisible({
|
||||||
timeout: 30000,
|
timeout: 30000,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue