Skip to content

Commit 5686666

Browse files
authored
Fix multiple pinned messages flacky tests by waiting the message to be displayed in the banner when pinned. (#28655)
1 parent 0c4189f commit 5686666

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

playwright/e2e/pinned-messages/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export class Helpers {
129129
const timelineMessage = this.page.locator(".mx_MTextBody", { hasText: message });
130130
await timelineMessage.click({ button: "right" });
131131
await this.page.getByRole("menuitem", { name: "Pin", exact: true }).click();
132+
await this.assertMessageInBanner(message);
132133
}
133134

134135
/**

0 commit comments

Comments
 (0)