From f26a7a90a27309ef4ec98af070e7941d8a9d27b0 Mon Sep 17 00:00:00 2001 From: SiriusXT <1160925501@qq.com> Date: Sun, 11 May 2025 10:53:45 +0800 Subject: [PATCH] test(e2e): open and activate notes from the launch pane and tree --- .../src/layout/open_note_and_activate.spec.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/server-e2e/src/layout/open_note_and_activate.spec.ts b/apps/server-e2e/src/layout/open_note_and_activate.spec.ts index b6e4d47bf..bb3770245 100644 --- a/apps/server-e2e/src/layout/open_note_and_activate.spec.ts +++ b/apps/server-e2e/src/layout/open_note_and_activate.spec.ts @@ -7,15 +7,14 @@ test("Opens and activate a note from launcher Bar", async ({ page, context }) => const app = new App(page, context); await app.goto(); await app.closeAllTabs(); - await app.goToNoteInNewTab(NOTE_TITLE); - const calendarButton = app.launcherBar.locator(".launcher-button.bx-calendar-star.visible"); - await expect(calendarButton).toBeVisible(); + const mapButton = app.launcherBar.locator(".launcher-button.bx-search.visible"); + await expect(mapButton).toBeVisible(); await page.keyboard.down('Control'); await page.keyboard.down('Shift'); - await calendarButton.click(); + await mapButton.click(); await page.keyboard.up('Control'); await page.keyboard.up('Shift'); @@ -31,12 +30,11 @@ test("Opens and activate a note from note tree", async ({ page, context }) => { const app = new App(page, context); await app.goto(); await app.closeAllTabs(); - await app.goToNoteInNewTab(NOTE_TITLE); await page.keyboard.down('Control'); await page.keyboard.down('Shift'); - await app.noteTreeActiveNote.click(); + await app.clickNoteOnNoteTreeByTitle(NOTE_TITLE); await page.keyboard.up('Control'); await page.keyboard.up('Shift');