Improve stability of Playwright screenshot tests (#11983)

This commit is contained in:
Michael Telatynski 2023-12-04 11:02:48 +00:00 committed by GitHub
parent 74ea0d134e
commit e180ca841b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 71 additions and 80 deletions

View file

@ -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 }) => {