From 8f353537589ca5e738dd4225b5f7ca9337f091e8 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 17 Oct 2024 17:08:26 +0100 Subject: [PATCH] Deflake keyboard navigation test (#28224) Fixes https://github.com/element-hq/element-web/issues/28139 --- playwright/e2e/accessibility/keyboard-navigation.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playwright/e2e/accessibility/keyboard-navigation.spec.ts b/playwright/e2e/accessibility/keyboard-navigation.spec.ts index 18983bde01..87cee4e05c 100644 --- a/playwright/e2e/accessibility/keyboard-navigation.spec.ts +++ b/playwright/e2e/accessibility/keyboard-navigation.spec.ts @@ -15,6 +15,9 @@ test.describe("Landmark navigation tests", () => { }); test("without any rooms", async ({ page, homeserver, app, user }) => { + // sometimes the space button doesn't appear right away + await expect(page.locator(".mx_SpaceButton_active")).toBeVisible(); + /** * Without any rooms, there is no tile in the roomlist to be focused. * So the next landmark in the list should be focused instead.