mirror of
https://github.com/vector-im/element-call.git
synced 2026-04-15 07:50:26 +00:00
add missing dismiss dialog test
This commit is contained in:
@@ -250,7 +250,7 @@ export class TestHelpers {
|
||||
}
|
||||
|
||||
// TODO: Remove as soon as web merges https://github.com/element-hq/element-web/pull/32755
|
||||
private static async dismissFileDialogPermissionIfNeeded(
|
||||
public static async dismissFileDialogPermissionIfNeeded(
|
||||
page: Page,
|
||||
): Promise<void> {
|
||||
const dialogHeading = page.getByRole("heading", {
|
||||
|
||||
@@ -45,6 +45,8 @@ widgetTest(
|
||||
await expect(whistler.page.getByText("Incoming voice call")).toBeVisible();
|
||||
await whistler.page.getByRole("button", { name: "Accept" }).click();
|
||||
|
||||
await TestHelpers.dismissFileDialogPermissionIfNeeded(whistler.page);
|
||||
|
||||
await expect(
|
||||
whistler.page.locator('iframe[title="Element Call"]'),
|
||||
).toBeVisible();
|
||||
@@ -138,6 +140,8 @@ widgetTest(
|
||||
await expect(whistler.page.getByText("Incoming video call")).toBeVisible();
|
||||
await whistler.page.getByRole("button", { name: "Accept" }).click();
|
||||
|
||||
await TestHelpers.dismissFileDialogPermissionIfNeeded(whistler.page);
|
||||
|
||||
await expect(
|
||||
whistler.page.locator('iframe[title="Element Call"]'),
|
||||
).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user