Deflake keyboard navigation test (#28224)

Fixes https://github.com/element-hq/element-web/issues/28139
This commit is contained in:
David Baker 2024-10-17 17:08:26 +01:00 committed by GitHub
parent cb383efb42
commit 8f35353758
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,6 +15,9 @@ test.describe("Landmark navigation tests", () => {
}); });
test("without any rooms", async ({ page, homeserver, app, user }) => { 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. * Without any rooms, there is no tile in the roomlist to be focused.
* So the next landmark in the list should be focused instead. * So the next landmark in the list should be focused instead.