add missing dismiss dialog test

This commit is contained in:
Valere
2026-03-31 15:24:12 +02:00
parent 0dabb43e0f
commit c9242148f9
2 changed files with 5 additions and 1 deletions

View File

@@ -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", {

View File

@@ -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();