From 5e5949257c6b2169fe27276f3982771f3b96e743 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Mon, 21 Oct 2024 18:07:03 +0200 Subject: [PATCH] Hide card tooltip in pinned message e2e test (#28257) --- playwright/e2e/pinned-messages/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/playwright/e2e/pinned-messages/index.ts b/playwright/e2e/pinned-messages/index.ts index ac50b62294..75928a438b 100644 --- a/playwright/e2e/pinned-messages/index.ts +++ b/playwright/e2e/pinned-messages/index.ts @@ -196,7 +196,14 @@ export class Helpers { */ async assertEmptyPinnedMessagesList() { const rightPanel = this.getRightPanel(); - await expect(rightPanel).toMatchScreenshot(`pinned-messages-list-empty.png`); + await expect(rightPanel).toMatchScreenshot(`pinned-messages-list-empty.png`, { + css: ` + // hide the tooltip "Room information" to avoid flakiness + [data-floating-ui-portal] { + display: none !important; + } + `, + }); } /**