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: add tests for editing a recurring reminder
Abdullah Atta35d36d3ec6b2
diff --git a/apps/web/__e2e__/reminders.test.ts b/apps/web/__e2e__/reminders.test.tsindex a6008aaaf..f8d841e89 100644--- a/apps/web/__e2e__/reminders.test.ts+++ b/apps/web/__e2e__/reminders.test.ts@@ -167,3 +167,27 @@ test("enable a disabled reminder", async ({ page }) => {expect(await reminders.findGroup("Active")).toBeDefined();expect(await reminder?.isDisabled()).toBeFalsy();});++test("editing a weekly recurring reminder should not revert it to daily", async ({+ page+}) => {+ const RECURRING_REMINDER: Partial<Reminder> = {+ ...ONE_TIME_REMINDER,+ recurringMode: "week",+ selectedDays: [0, 2],+ mode: "repeat"+ };++ const app = new AppModel(page);+ await app.goto();+ const reminders = await app.goToReminders();+ const reminder = await reminders.createReminderAndWait(RECURRING_REMINDER);++ await reminder?.edit({+ description: "An edited reminder"+ });++ expect(await reminder?.isPresent()).toBe(true);+ expect(await reminder?.getRecurringMode()).toBe("Weekly");+ expect(await reminder?.getDescription()).toBe("An edited reminder");+});