Fix multiple pinned messages flacky tests by waiting the message to be displayed in the banner when pinned. (#28655)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user