fix(new_tab): workspace switcher no longer displayed

Regression of 7f1eb99127
This commit is contained in:
Elian Doran
2025-04-08 12:46:58 +03:00
parent 3a1f1ceedb
commit 0eec8042ca
4 changed files with 21 additions and 2 deletions

View File

@@ -117,3 +117,17 @@ test("Search works when dismissing a tab", async ({ page, context }) => {
await app.openAndClickNoteActionMenu("Search in note");
await expect(app.findAndReplaceWidget).toBeVisible();
});
test("New tab displays workspaces", async ({ page, context }) => {
const app = new App(page, context);
await app.goto();
const workspaceNotesEl = app.currentNoteSplitContent.locator(".workspace-notes");
await expect(workspaceNotesEl).toBeVisible();
expect(workspaceNotesEl).toContainText("Personal");
expect(workspaceNotesEl).toContainText("Work");
await expect(workspaceNotesEl.locator(".bx.bxs-user")).toBeVisible();
await expect(workspaceNotesEl.locator(".bx.bx-briefcase-alt")).toBeVisible();
await app.closeAllTabs();
});