From 5686666ad2556d5ad044526cd8015f469dec9cfd Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Thu, 5 Dec 2024 16:31:16 +0100 Subject: [PATCH] Fix multiple pinned messages flacky tests by waiting the message to be displayed in the banner when pinned. (#28655) --- playwright/e2e/pinned-messages/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/playwright/e2e/pinned-messages/index.ts b/playwright/e2e/pinned-messages/index.ts index ac50b62294..545d0e3438 100644 --- a/playwright/e2e/pinned-messages/index.ts +++ b/playwright/e2e/pinned-messages/index.ts @@ -129,6 +129,7 @@ export class Helpers { const timelineMessage = this.page.locator(".mx_MTextBody", { hasText: message }); await timelineMessage.click({ button: "right" }); await this.page.getByRole("menuitem", { name: "Pin", exact: true }).click(); + await this.assertMessageInBanner(message); } /**