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; }