diff --git a/apps/web/__e2e__/editor.test.ts b/apps/web/__e2e__/editor.test.ts index 420cd03b3..e4d77d7f8 100644 --- a/apps/web/__e2e__/editor.test.ts +++ b/apps/web/__e2e__/editor.test.ts @@ -277,12 +277,15 @@ test("creating a new note and toggling read-only mode should not empty editor co expect(await notes.editor.getContent("text")).toBe(NOTE.content); }); -test("count number of words in an opened note", async ({ page }) => { +test("#1468 count words separated by newlines", async ({ page }) => { const app = new AppModel(page); await app.goto(); const notes = await app.goToNotes(); - NOTE.content = "1\n2\n3\na\nb\nc\nd\ne\nali\nwaqar"; //10 - await notes.createNote(NOTE); + + await notes.createNote({ + content: "1\n2\n3\na\nb\nc\nd\ne\nali\nwaqar", + title: NOTE.title + }); expect((await notes.editor.getWordCount()) === 10).toBeTruthy(); }); diff --git a/apps/web/__e2e__/navigation.test.ts b/apps/web/__e2e__/navigation.test.ts index be494369b..7627447d8 100644 --- a/apps/web/__e2e__/navigation.test.ts +++ b/apps/web/__e2e__/navigation.test.ts @@ -43,6 +43,7 @@ for (const route of routes) { const item = await app.navigation.findItem(route.header); await item?.click(); + expect(item).toBeDefined(); expect(await app.getRouteHeader()).toBe(route.header); }); } diff --git a/apps/web/__e2e__/notes.test.ts-snapshots/export-html-Chromium-linux.txt b/apps/web/__e2e__/notes.test.ts-snapshots/export-html-Chromium-linux.txt index e6ce6d8d8..041315cd0 100644 --- a/apps/web/__e2e__/notes.test.ts-snapshots/export-html-Chromium-linux.txt +++ b/apps/web/__e2e__/notes.test.ts-snapshots/export-html-Chromium-linux.txt @@ -11,6 +11,174 @@ +

Test 1