From 83777a6c5788c204782c28bc0f225c4d53b4936b Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 23 Oct 2024 10:12:47 +0200 Subject: [PATCH] Fix pinned message e2e flakes (#28268) --- playwright/e2e/pinned-messages/index.ts | 2 +- playwright/e2e/pinned-messages/pinned-messages.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playwright/e2e/pinned-messages/index.ts b/playwright/e2e/pinned-messages/index.ts index 75928a438b..e5d08a75b7 100644 --- a/playwright/e2e/pinned-messages/index.ts +++ b/playwright/e2e/pinned-messages/index.ts @@ -197,8 +197,8 @@ export class Helpers { async assertEmptyPinnedMessagesList() { const rightPanel = this.getRightPanel(); await expect(rightPanel).toMatchScreenshot(`pinned-messages-list-empty.png`, { + // hide the tooltip "Room information" to avoid flakiness css: ` - // hide the tooltip "Room information" to avoid flakiness [data-floating-ui-portal] { display: none !important; } diff --git a/playwright/e2e/pinned-messages/pinned-messages.spec.ts b/playwright/e2e/pinned-messages/pinned-messages.spec.ts index d72e8eaec3..ef2c1b27d4 100644 --- a/playwright/e2e/pinned-messages/pinned-messages.spec.ts +++ b/playwright/e2e/pinned-messages/pinned-messages.spec.ts @@ -31,8 +31,8 @@ test.describe("Pinned messages", () => { const tile = util.getEventTile("Msg1"); await expect(tile).toMatchScreenshot("pinned-message-Msg1.png", { mask: [tile.locator(".mx_MessageTimestamp")], + // Hide the jump to bottom button in the timeline to avoid flakiness css: ` - // Hide the jump to bottom button in the timeline to avoid flakiness .mx_JumpToBottomButton { display: none !important; }