From 75551aa41988fc782845beee39e98c6732a3fa06 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 17 Oct 2024 13:48:51 +0100 Subject: [PATCH] Deflake keyboard navigation test 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 18983bde014..87cee4e05c3 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.