From a1f56ebbf2b86085f3ffa9f606a1a4ce1303fd75 Mon Sep 17 00:00:00 2001 From: David Langley Date: Wed, 27 Aug 2025 14:17:12 +0100 Subject: [PATCH] Deflake test (#30634) --- playwright/e2e/left-panel/room-list-panel/room-list.spec.ts | 3 +++ 1 file changed, 3 insertions(+) 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 2d62737b85..67910f61e8 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();