Remove RR instead of masking it

This commit is contained in:
R Midhun Suresh 2026-05-11 18:38:38 +05:30
parent e2ba6134ee
commit d2c09e2ef6
No known key found for this signature in database
2 changed files with 7 additions and 2 deletions

View File

@ -61,11 +61,16 @@ test.describe("History sharing", function () {
// Bob should now be able to decrypt the event
await expect(bobPage.getByText("A message from Alice")).toBeVisible();
// Exclude message timestamps and RR avatars from the screenshot. Bob sometimes sees Alice's RR on the
// Mask message timestamps and exclude 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")];
const mask = [bobPage.locator(".mx_MessageTimestamp")];
await expect(bobPage.locator(".mx_RoomView_body")).toMatchScreenshot("shared-history-invite-accepted.png", {
mask,
css: `
.mx_ReadReceiptGroup_container {
display: none !important;
}
`,
});
},
);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB