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
|
@ -67,9 +67,7 @@ test.describe("RightPanel", () => {
|
|||
await expect(page.locator(".mx_RightPanel")).not.toBeVisible();
|
||||
await page.getByRole("button", { name: "Room info" }).click();
|
||||
|
||||
await expect(page.locator(".mx_RightPanel")).toHaveScreenshot("with-name-and-address.png", {
|
||||
mask: [page.locator(".mx_BaseAvatar")],
|
||||
});
|
||||
await expect(page.locator(".mx_RightPanel")).toMatchScreenshot("with-name-and-address.png");
|
||||
});
|
||||
|
||||
test("should handle clicking add widgets", async ({ page, app }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue