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; + } + `, + }); } /**