Reduce screenshot scope (#33522)

This commit is contained in:
Will Hunt
2026-05-18 13:35:53 +01:00
committed by GitHub
parent d1a9f95e20
commit 5156e88c9d
28 changed files with 61 additions and 40 deletions
@@ -64,9 +64,12 @@ test.describe("History sharing", function () {
// Exclude message timestamps and RR avatars from the screenshot. Bob sometimes sees Alice's RR on the
// previous event, which is surprising but not what we're testing here.
const mask = [bobPage.locator(".mx_MessageTimestamp"), bobPage.locator(".mx_ReadReceiptGroup_container")];
await expect(bobPage.locator(".mx_RoomView_body")).toMatchScreenshot("shared-history-invite-accepted.png", {
mask,
});
await expect(bobPage.locator(".mx_RoomView_timeline")).toMatchScreenshot(
"shared-history-invite-accepted.png",
{
mask,
},
);
},
);