From de1ef5b98b260e518593807fe59789b0256098a1 Mon Sep 17 00:00:00 2001 From: SiriusXT <1160925501@qq.com> Date: Sat, 3 Jan 2026 19:04:34 +0800 Subject: [PATCH] chore(test): fix errors caused by layout changes --- apps/server-e2e/src/note_types/text.spec.ts | 2 +- apps/server-e2e/src/support/app.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server-e2e/src/note_types/text.spec.ts b/apps/server-e2e/src/note_types/text.spec.ts index c99ad5d7d..89b186989 100644 --- a/apps/server-e2e/src/note_types/text.spec.ts +++ b/apps/server-e2e/src/note_types/text.spec.ts @@ -42,7 +42,7 @@ test("Highlights list is displayed", async ({ page, context }) => { await app.closeAllTabs(); await app.goToNoteInNewTab("Highlights list"); - await expect(app.sidebar).toContainText("Highlights List"); + await expect(app.sidebar).toContainText(/highlights/i); const rootList = app.sidebar.locator(".highlights-list ol"); let index = 0; for (const highlightedEl of ["Bold 1", "Italic 1", "Underline 1", "Colored text 1", "Background text 1", "Bold 2", "Italic 2", "Underline 2", "Colored text 2", "Background text 2"]) { diff --git a/apps/server-e2e/src/support/app.ts b/apps/server-e2e/src/support/app.ts index 12097c656..3df83db35 100644 --- a/apps/server-e2e/src/support/app.ts +++ b/apps/server-e2e/src/support/app.ts @@ -59,7 +59,7 @@ export default class App { // Wait for the page to load. if (url === "/") { - await expect(this.page.locator(".tree")).toContainText("Trilium Integration Test"); + await expect(this.noteTree).toContainText("Trilium Integration Test"); if (!preserveTabs) { await this.closeAllTabs(); }