diff --git a/playwright/e2e/pinned-messages/pinned-messages.spec.ts b/playwright/e2e/pinned-messages/pinned-messages.spec.ts index 74cabc485e..2ec4844052 100644 --- a/playwright/e2e/pinned-messages/pinned-messages.spec.ts +++ b/playwright/e2e/pinned-messages/pinned-messages.spec.ts @@ -30,10 +30,7 @@ test.describe("Pinned messages", () => { const tile = util.getEventTile("Msg1"); await expect(tile).toMatchScreenshot("pinned-message-Msg1.png", { - mask: [ - tile.locator(".mx_MessageTimestamp"), - page.getByRole("button", { name: "Scroll to most recent messages" }), - ], + mask: [tile.locator(".mx_MessageTimestamp")], css: ` // Hide the jump to bottom button in the timeline to avoid flackiness .mx_JumpToBottomButton {