diff --git a/docker-compose-playwright.yml b/docker-compose-playwright.yml index 39671ff9f..a37ab16d0 100644 --- a/docker-compose-playwright.yml +++ b/docker-compose-playwright.yml @@ -13,7 +13,7 @@ services: - ./backend/playwright_homeserver-othersite.yaml:/data/cfg/homeserver.yaml:Z element-web: # Pin to a SHA so that upstream cannot break our tests. Renovate handles regular updates. - image: ghcr.io/element-hq/element-web:develop@sha256:d1841828a390d96da2ee64232949db641f11766fb506ec561374819d10533b9a + image: ghcr.io/element-hq/element-web:develop@sha256:0183c0a7f4292252349ddcff2de92a83a4571b283da49cc54adb9efbf3d20695 element-web-1: # Pin to a SHA so that upstream cannot break our tests. Renovate handles regular updates. - image: ghcr.io/element-hq/element-web:develop@sha256:d1841828a390d96da2ee64232949db641f11766fb506ec561374819d10533b9a + image: ghcr.io/element-hq/element-web:develop@sha256:0183c0a7f4292252349ddcff2de92a83a4571b283da49cc54adb9efbf3d20695 diff --git a/playwright/widget/pip-call-button-interaction.test.ts b/playwright/widget/pip-call-button-interaction.test.ts index 95aa41960..d9f280132 100644 --- a/playwright/widget/pip-call-button-interaction.test.ts +++ b/playwright/widget/pip-call-button-interaction.test.ts @@ -36,6 +36,7 @@ widgetTest("Footer interaction in PiP", async ({ addUser, browserName }) => { await valere.page.waitForTimeout(600); // Switch to the other room, the call should go to PIP + await TestHelpers.expandRoomList(valere.page); await TestHelpers.switchToRoomNamed(valere.page, "OtherRoom"); // We should see the PIP overlay diff --git a/playwright/widget/pip-call.test.ts b/playwright/widget/pip-call.test.ts index b18252c10..a186f7483 100644 --- a/playwright/widget/pip-call.test.ts +++ b/playwright/widget/pip-call.test.ts @@ -53,6 +53,7 @@ widgetTest("Put call in PIP", async ({ addUser, browserName }) => { }); // Switch to the other room, the call should go to PIP + await TestHelpers.expandRoomList(valere.page); await TestHelpers.switchToRoomNamed(valere.page, "DoubleTask"); // We should see the PIP overlay diff --git a/playwright/widget/test-helpers.ts b/playwright/widget/test-helpers.ts index 299faf578..632b2592b 100644 --- a/playwright/widget/test-helpers.ts +++ b/playwright/widget/test-helpers.ts @@ -346,6 +346,12 @@ export class TestHelpers { } } + public static async expandRoomList(page: Page): Promise { + await page + .getByRole("separator", { name: "Click or drag to expand" }) + .click(); + } + /** * Switches to a room in the room list by its name. * @param page - The EW page