A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
test: make sure all tests pass
thecodrrd221cf8f6c03
diff --git a/apps/web/__e2e__/editor.test.js b/apps/web/__e2e__/editor.test.jsindex fa5e05aa4..42d052296 100644--- a/apps/web/__e2e__/editor.test.js+++ b/apps/web/__e2e__/editor.test.js@@ -274,8 +274,8 @@ test("editing a note and switching immediately to another note and making an editest("editing a note and switching immediately to another note and editing the title shouldn't overlap both notes", async ({page,-}, { setTimeout }) => {- setTimeout(0);+}, testInfo) => {+ testInfo.setTimeout(0);await createNoteAndCheckPresence({title: "Test note 1",content: "53ad8e4e40ebebd0f400498d",diff --git a/apps/web/__e2e__/notes.test.js b/apps/web/__e2e__/notes.test.jsindex cdaaad1d7..6f14b5c9b 100644--- a/apps/web/__e2e__/notes.test.js+++ b/apps/web/__e2e__/notes.test.js@@ -79,11 +79,11 @@ async function lockUnlockNote(noteSelector) {await expect(isToastPresent()).resolves.toBeTruthy();}-async function openLockedNote(noteSelector) {+async function openLockedNote(noteSelector, title = NOTE.title) {await page.click(noteSelector);await expect(page.textContent(getTestId("unlock-note-title"))).resolves.toBe(- NOTE.title+ title);await page.fill(getTestId("unlock-note-password"), PASSWORD);@@ -467,4 +467,27 @@ test.describe("run tests independently", () => {const editorContent = await getEditorContent();expect(editorContent).toContain(`${content}${NOTE.content}`);});++ test.only("change title of a locked note", async () => {+ const title = "NEW TITLE!";++ const noteSelector = await createNoteAndCheckPresence();++ await lockUnlockNote(noteSelector, "lock");++ await checkNoteLocked(noteSelector);++ await openLockedNote(noteSelector);++ await editNote(title);++ await page.waitForTimeout(1000);++ await openLockedNote(noteSelector, title);++ await page.waitForTimeout(1000);++ const editorTitle = await getEditorTitle();+ expect(editorTitle).toContain(title);+ });});diff --git a/apps/web/__e2e__/user.test.js b/apps/web/__e2e__/user.test.jsindex 555770e84..91e435e61 100644--- a/apps/web/__e2e__/user.test.js+++ b/apps/web/__e2e__/user.test.js@@ -57,7 +57,7 @@ test("login user and change password repeatedly", async ({let newPassword = USER.NEW.password;let email = USER.email;- for (let i = 0; i < 2; i++) {+ for (let i = 0; i < 3; i++) {await test.step(`login user using password ${currentPassword} (${i})`,async () => {diff --git a/apps/web/__e2e__/utils/index.js b/apps/web/__e2e__/utils/index.jsindex 22e62e6e9..3f6e730fa 100644--- a/apps/web/__e2e__/utils/index.js+++ b/apps/web/__e2e__/utils/index.js@@ -7,11 +7,11 @@ dotenv.config({ path: path.join(__dirname, ".env.local") });const USER = {email: process.env.USER_EMAIL,- CURRENT: {+ NEW: {password: "",key: "",},- NEW: {+ CURRENT: {password: process.env.USER_PASSWORD,key: "",},