mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-05-18 13:16:11 +02:00
web: fix edit note creation date test
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user