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 `adding a one-time reminder before current time should not be possible`
Abdullah Attae59820e3d6e8
diff --git a/apps/web/__e2e__/reminders.test.ts b/apps/web/__e2e__/reminders.test.tsindex 7e6d3356b..e1c1d7284 100644--- a/apps/web/__e2e__/reminders.test.ts+++ b/apps/web/__e2e__/reminders.test.ts@@ -53,16 +53,17 @@ test("adding a one-time reminder before current time should not be possible", asawait app.goto();const reminders = await app.goToReminders();- await reminders.createReminder({- ...ONE_TIME_REMINDER,- date: 0- });-- expect(- await app.toasts.waitForToast(+ const result = await Promise.race([+ reminders.createReminder({+ ...ONE_TIME_REMINDER,+ date: 0+ }),+ app.toasts.waitForToast("Reminder time cannot be earlier than the current time.")- ).toBeTruthy();+ ]);++ expect(result).toBeTruthy();});for (const recurringMode of ["Daily", "Weekly", "Monthly"] as const) {