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
web: fix edit note creation date test Signed-off-by: 01zulfi <[email protected]>
01zulfiee74bb4fbf0d
diff --git a/apps/web/__e2e__/models/note-properties.model.ts b/apps/web/__e2e__/models/note-properties.model.tsindex 4537fba2a..b557068dd 100644--- a/apps/web/__e2e__/models/note-properties.model.ts+++ b/apps/web/__e2e__/models/note-properties.model.ts@@ -253,7 +253,7 @@ export class NotePropertiesModel extends BaseProperties {getTestId("time-created-input"));- await dateInput.fill(date.format("MM-DD-YYYY"));+ await dateInput.fill(date.format("DD-MM-YYYY"));await timeInput.fill(date.format("hh:mm A"));await confirmDialog(editDateCreatedDialog);diff --git a/apps/web/__e2e__/notes.test.ts b/apps/web/__e2e__/notes.test.tsindex 7a714d995..cefac7827 100644--- a/apps/web/__e2e__/notes.test.ts+++ b/apps/web/__e2e__/notes.test.ts@@ -459,7 +459,5 @@ test("edit note creation date in properties panel", async ({ page }) => {await note?.properties.editDateCreated(date);const dateCreated = await note?.properties.getDateCreated();- expect(date.format("YYYY-MM-DD HH:mm")).toBe(- dayjs(dateCreated).format("YYYY-MM-DD HH:mm")- );+ expect(date.format("DD-MM-YYYY hh:mm A")).toBe(dateCreated);});