diff --git a/playwright/e2e/left-panel/room-list-panel/room-list.spec.ts b/playwright/e2e/left-panel/room-list-panel/room-list.spec.ts index 2d62737b851..67910f61e80 100644 --- a/playwright/e2e/left-panel/room-list-panel/room-list.spec.ts +++ b/playwright/e2e/left-panel/room-list-panel/room-list.spec.ts @@ -193,6 +193,9 @@ test.describe("Room list", () => { await roomListView.getByRole("option", { name: "Open room room20" }).click(); + // Make sure the room with the unread is visible before we press the keyboard action to select it + await expect(roomListView.getByRole("option", { name: "1 notification" })).toBeVisible(); + await page.keyboard.press("Alt+Shift+ArrowDown"); await expect(page.getByRole("heading", { name: "1 notification", level: 1 })).toBeVisible();