Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

test: fix all tests

thecodrr1ade0dfb362f
diff --git a/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-1-Chromium-linux.txt b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-1-Chromium-linux.txt
index c5c3d9a70..76d549a96 100644
--- a/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-1-Chromium-linux.txt
+++ b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-1-Chromium-linux.txt
@@ -1 +1 @@
-Test note 1 (9) Test note 1 (8) Test note 1 (7) Test note 1 (6) Test note 1 (5) Test note 1 (4) Test note 1 (3) Test note 1 (2) Test note 1 (1) Test note 1 (0) 53ad8e4e40ebebd0f400498d
\ No newline at end of file
+Test note 1 (9) Test note 1 (7) Test note 1 (6) Test note 1 (5) Test note 1 (4) Test note 1 (3) Test note 1 (2) Test note 1 (1) Test note 1 (0) 53ad8e4e40ebebd0f400498d
\ No newline at end of file
diff --git a/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-2-Chromium-linux.txt b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-2-Chromium-linux.txt
index 0365eeded..a7bdff68b 100644
--- a/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-2-Chromium-linux.txt
+++ b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-2-Chromium-linux.txt
@@ -1 +1 @@
-Test note 2 (9)Test note 2 (8)Test note 2 (7)Test note 2 (6)Test note 2 (5)Test note 2 (4)Test note 2 (3)Test note 2 (2)Test note 2 (1)Test note 2 (0)f054d19e9a2f46eff7b9bb25
\ No newline at end of file
+Test note 2 (9)Test note 2 (7)Test note 1 (8) Test note 2 (8)Test note 2 (6)Test note 2 (5)Test note 2 (4)Test note 2 (3)Test note 2 (2)Test note 2 (1)Test note 2 (0)f054d19e9a2f46eff7b9bb25
\ No newline at end of file
diff --git a/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-1-Chromium-linux.txt b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-1-Chromium-linux.txt
index f9d2c80fb..c8a4b6fd3 100644
--- a/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-1-Chromium-linux.txt
+++ b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-1-Chromium-linux.txt
@@ -1 +1 @@
-Test note 2 (8)
\ No newline at end of file
+Test note 2 (9)
\ No newline at end of file
diff --git a/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-1-Firefox-linux.txt b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-1-Firefox-linux.txt
new file mode 100644
index 000000000..c8a4b6fd3
--- /dev/null
+++ b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-1-Firefox-linux.txt
@@ -0,0 +1 @@
+Test note 2 (9)
\ No newline at end of file
diff --git a/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-1-WebKit-linux.txt b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-1-WebKit-linux.txt
new file mode 100644
index 000000000..f9d2c80fb
--- /dev/null
+++ b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-1-WebKit-linux.txt
@@ -0,0 +1 @@
+Test note 2 (8)
\ No newline at end of file
diff --git a/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-2-Firefox-linux.txt b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-2-Firefox-linux.txt
new file mode 100644
index 000000000..c8a4b6fd3
--- /dev/null
+++ b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-2-Firefox-linux.txt
@@ -0,0 +1 @@
+Test note 2 (9)
\ No newline at end of file
diff --git a/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-2-WebKit-linux.txt b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-2-WebKit-linux.txt
new file mode 100644
index 000000000..c8a4b6fd3
--- /dev/null
+++ b/apps/web/__e2e__/editor.test.js-snapshots/fast-switch-and-edit-note-title-2-WebKit-linux.txt
@@ -0,0 +1 @@
+Test note 2 (9)
\ No newline at end of file
diff --git a/apps/web/__e2e__/notes.test.js b/apps/web/__e2e__/notes.test.js
index 91c2b88b3..cdaaad1d7 100644
--- a/apps/web/__e2e__/notes.test.js
+++ b/apps/web/__e2e__/notes.test.js
@@ -462,10 +462,9 @@ test.describe("run tests independently", () => {
await openLockedNote(noteSelector);
- await page.waitForSelector(".mce-content-body");
+ await page.waitForTimeout(1000);
- await expect(page.textContent(".mce-content-body")).resolves.toContain(
- `${content}${NOTE.content}`
- );
+ const editorContent = await getEditorContent();
+ expect(editorContent).toContain(`${content}${NOTE.content}`);
});
});
diff --git a/apps/web/__e2e__/notes.test.js-snapshots/export-html-Chromium-linux.txt b/apps/web/__e2e__/notes.test.js-snapshots/export-html-Chromium-linux.txt
index 1b8c68481..37d8c31e6 100644
--- a/apps/web/__e2e__/notes.test.js-snapshots/export-html-Chromium-linux.txt
+++ b/apps/web/__e2e__/notes.test.js-snapshots/export-html-Chromium-linux.txt
@@ -11,7 +11,7 @@
</head>
<body>
<h1>Test 1</h1>
- <p>This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1</p>
+ <p dir="ltr">This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1</p>
<br/>
Created on: <b>xxx</b><br/>
Edited on: <b>xxx</b>
diff --git a/apps/web/__e2e__/notes.test.js-snapshots/export-html-Firefox-linux.txt b/apps/web/__e2e__/notes.test.js-snapshots/export-html-Firefox-linux.txt
index 28038ffa7..37d8c31e6 100644
--- a/apps/web/__e2e__/notes.test.js-snapshots/export-html-Firefox-linux.txt
+++ b/apps/web/__e2e__/notes.test.js-snapshots/export-html-Firefox-linux.txt
@@ -11,7 +11,7 @@
</head>
<body>
<h1>Test 1</h1>
- <p>This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1<br></p>
+ <p dir="ltr">This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1</p>
<br/>
Created on: <b>xxx</b><br/>
Edited on: <b>xxx</b>
diff --git a/apps/web/__e2e__/notes.test.js-snapshots/export-html-WebKit-linux.txt b/apps/web/__e2e__/notes.test.js-snapshots/export-html-WebKit-linux.txt
index 1b8c68481..37d8c31e6 100644
--- a/apps/web/__e2e__/notes.test.js-snapshots/export-html-WebKit-linux.txt
+++ b/apps/web/__e2e__/notes.test.js-snapshots/export-html-WebKit-linux.txt
@@ -11,7 +11,7 @@
</head>
<body>
<h1>Test 1</h1>
- <p>This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1</p>
+ <p dir="ltr">This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1</p>
<br/>
Created on: <b>xxx</b><br/>
Edited on: <b>xxx</b>