1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-09 08:42:50 +03:00

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
23 changed files with 71 additions and 80 deletions

View File

@@ -44,7 +44,7 @@ test.describe("Security user settings tab", () => {
test("should be rendered properly", async ({ app, page }) => {
const tab = await app.settings.openUserSettings("Security");
await tab.getByRole("button", { name: "Learn more" }).click();
await expect(page.locator(".mx_AnalyticsLearnMoreDialog_wrapper .mx_Dialog")).toHaveScreenshot();
await expect(page.locator(".mx_AnalyticsLearnMoreDialog_wrapper .mx_Dialog")).toMatchScreenshot();
});
});
});