mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
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 });
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user