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

View File

@@ -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.