Skip to content

Commit

Permalink
Fix multiple pinned messages flacky tests by waiting the message to b…
Browse files Browse the repository at this point in the history
…e displayed in the banner when pinned. (element-hq#28655)
  • Loading branch information
florianduros authored Dec 5, 2024
1 parent 0c4189f commit 5686666
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions playwright/e2e/pinned-messages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 5686666

Please sign in to comment.