mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
web: fix all failing tests
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -116,6 +116,7 @@ function NavigationItem(
|
||||
onContextMenu={(e) => {
|
||||
if (!menuItems) return;
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
Menu.openMenu(menuItems);
|
||||
}}
|
||||
onClick={() => {
|
||||
|
||||
@@ -91,7 +91,7 @@ export function useKeyboardListNavigation(
|
||||
indices.push(i);
|
||||
}
|
||||
bulkSelect(indices);
|
||||
focusItemAt(endIndex);
|
||||
focusItemAt(itemIndex);
|
||||
} else {
|
||||
resetSelection();
|
||||
select(itemIndex);
|
||||
|
||||
Reference in New Issue
Block a user