Fix multiple pinned messages flacky tests by waiting the message to be displayed in the banner when pinned. (#28655)
This commit is contained in:
parent
0c4189f2ed
commit
5686666ad2
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ export class Helpers {
|
||||||
const timelineMessage = this.page.locator(".mx_MTextBody", { hasText: message });
|
const timelineMessage = this.page.locator(".mx_MTextBody", { hasText: message });
|
||||||
await timelineMessage.click({ button: "right" });
|
await timelineMessage.click({ button: "right" });
|
||||||
await this.page.getByRole("menuitem", { name: "Pin", exact: true }).click();
|
await this.page.getByRole("menuitem", { name: "Pin", exact: true }).click();
|
||||||
|
await this.assertMessageInBanner(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue