Fix multiple pinned messages flacky tests by waiting the message to be displayed in the banner when pinned. (#28655)

pull/28665/head
Florian Duros 2024-12-05 16:31:16 +01:00 committed by GitHub
parent 0c4189f2ed
commit 5686666ad2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}
/**