From 4f1eb341a803b4609749dbd46b89ca3f17f8f83d Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Mon, 21 Oct 2024 18:06:40 +0200 Subject: [PATCH] Remove redundant mask --- playwright/e2e/pinned-messages/pinned-messages.spec.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 {