web: fix all failing tests

This commit is contained in:
Abdullah Atta
2024-07-08 11:22:14 +05:00
parent 5ef7e39e17
commit 2d93a17f34
3 changed files with 3 additions and 1 deletions

View File

@@ -97,6 +97,7 @@ test("logged in user should not be able to open unauthorized routes", async ({
await page.goto(route);
await page.waitForURL(/\/notes/gm);
await page.waitForTimeout(1000);
expect(await app.navigation.findItem("Notes")).toBeDefined();
}
});

View File

@@ -116,6 +116,7 @@ function NavigationItem(
onContextMenu={(e) => {
if (!menuItems) return;
e.preventDefault();
e.stopPropagation();
Menu.openMenu(menuItems);
}}
onClick={() => {

View File

@@ -91,7 +91,7 @@ export function useKeyboardListNavigation(
indices.push(i);
}
bulkSelect(indices);
focusItemAt(endIndex);
focusItemAt(itemIndex);
} else {
resetSelection();
select(itemIndex);