Improve stability of Playwright screenshot tests (#11983)
This commit is contained in:
parent
74ea0d134e
commit
e180ca841b
23 changed files with 71 additions and 80 deletions
|
@ -35,7 +35,7 @@ test.describe("User Onboarding (new user)", () => {
|
|||
});
|
||||
|
||||
test("page is shown and preference exists", async ({ page, app }) => {
|
||||
await expect(page.locator(".mx_UserOnboardingPage")).toHaveScreenshot();
|
||||
await expect(page.locator(".mx_UserOnboardingPage")).toMatchScreenshot();
|
||||
await app.settings.openUserSettings("Preferences");
|
||||
await expect(page.getByText("Show shortcut to welcome checklist above the room list")).toBeVisible();
|
||||
});
|
||||
|
@ -45,7 +45,7 @@ test.describe("User Onboarding (new user)", () => {
|
|||
await expect(
|
||||
page.getByRole("dialog").getByRole("heading", { level: 2, name: "Download Element" }),
|
||||
).toBeVisible();
|
||||
await expect(page.locator(".mx_Dialog")).toHaveScreenshot();
|
||||
await expect(page.locator(".mx_Dialog")).toMatchScreenshot();
|
||||
});
|
||||
|
||||
test("using find friends action should increase progress", async ({ page, homeserver }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue