diff --git a/apps/web/playwright/e2e/crypto/history-sharing.spec.ts b/apps/web/playwright/e2e/crypto/history-sharing.spec.ts index f2017e9467..4ff34e6f14 100644 --- a/apps/web/playwright/e2e/crypto/history-sharing.spec.ts +++ b/apps/web/playwright/e2e/crypto/history-sharing.spec.ts @@ -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; + } + `, }); }, ); diff --git a/apps/web/playwright/snapshots/crypto/history-sharing.spec.ts/shared-history-invite-accepted-linux.png b/apps/web/playwright/snapshots/crypto/history-sharing.spec.ts/shared-history-invite-accepted-linux.png index fe84334fc9..6958987840 100644 Binary files a/apps/web/playwright/snapshots/crypto/history-sharing.spec.ts/shared-history-invite-accepted-linux.png and b/apps/web/playwright/snapshots/crypto/history-sharing.spec.ts/shared-history-invite-accepted-linux.png differ