Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit f26a7a9

Browse files
committed
test(e2e): open and activate notes from the launch pane and tree
1 parent 8486bbc commit f26a7a9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

apps/server-e2e/src/layout/open_note_and_activate.spec.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ test("Opens and activate a note from launcher Bar", async ({ page, context }) =>
77
const app = new App(page, context);
88
await app.goto();
99
await app.closeAllTabs();
10-
await app.goToNoteInNewTab(NOTE_TITLE);
1110

12-
const calendarButton = app.launcherBar.locator(".launcher-button.bx-calendar-star.visible");
13-
await expect(calendarButton).toBeVisible();
11+
const mapButton = app.launcherBar.locator(".launcher-button.bx-search.visible");
12+
await expect(mapButton).toBeVisible();
1413

1514
await page.keyboard.down('Control');
1615
await page.keyboard.down('Shift');
1716

18-
await calendarButton.click();
17+
await mapButton.click();
1918

2019
await page.keyboard.up('Control');
2120
await page.keyboard.up('Shift');
@@ -31,12 +30,11 @@ test("Opens and activate a note from note tree", async ({ page, context }) => {
3130
const app = new App(page, context);
3231
await app.goto();
3332
await app.closeAllTabs();
34-
await app.goToNoteInNewTab(NOTE_TITLE);
3533

3634
await page.keyboard.down('Control');
3735
await page.keyboard.down('Shift');
3836

39-
await app.noteTreeActiveNote.click();
37+
await app.clickNoteOnNoteTreeByTitle(NOTE_TITLE);
4038

4139
await page.keyboard.up('Control');
4240
await page.keyboard.up('Shift');

0 commit comments

Comments
 (0)