web: fix edit note creation date test

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2026-03-24 16:30:18 +05:00
parent df104669a3
commit ee74bb4fbf
2 changed files with 2 additions and 4 deletions

View File

@@ -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);

View File

@@ -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);
});