From b7faecbdf85675d94ac17b37a2617addd8e2467f Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Mon, 21 Oct 2024 16:34:21 +0200 Subject: [PATCH] Hide card tooltip in pinned message e2e test --- 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 ac50b62294b..75928a438bb 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; + } + `, + }); } /**