Refactor: update selectors in outdated message test (#5079)
* fix: add missing imports and update selectors in outdated message test * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
4ea144eba9
commit
f253246714
1 changed files with 7 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { test } from "@playwright/test";
|
import { expect, test } from "@playwright/test";
|
||||||
import { readFileSync } from "fs";
|
import { readFileSync } from "fs";
|
||||||
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
||||||
|
|
||||||
|
|
@ -27,7 +27,9 @@ test("user must be able outdated message on error", async ({ page }) => {
|
||||||
dataTransfer,
|
dataTransfer,
|
||||||
});
|
});
|
||||||
|
|
||||||
await page.waitForTimeout(3000);
|
await page.waitForSelector("data-testid=list-card", {
|
||||||
|
timeout: 3000,
|
||||||
|
});
|
||||||
|
|
||||||
await page.getByTestId("list-card").first().click();
|
await page.getByTestId("list-card").first().click();
|
||||||
|
|
||||||
|
|
@ -37,8 +39,7 @@ test("user must be able outdated message on error", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("button_run_chat output").click();
|
await page.getByTestId("button_run_chat output").click();
|
||||||
|
|
||||||
await page.waitForSelector("text=there are outdated components in the flow", {
|
await expect(
|
||||||
timeout: 30000,
|
page.getByText("there are outdated components in the flow"),
|
||||||
state: "visible",
|
).toBeVisible({ timeout: 30000 });
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue