Bug 1583520 - Follow-up: Add comment about error dialog in testEventDialog.js. r=darktrojan
authorPaul Morris <paul@thunderbird.net>
Thu, 26 Sep 2019 16:19:35 -0400
changeset 36968 d9f793b6fcf4248080d4d367e961581bb890cc5a
parent 36967 8ab0fc5740aaddb22fdafbd97886ba30f5728621
child 36969 ba107919a38740fbfae631d7e0d8b2d8b5e327f9
push id395
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:38:57 +0000
reviewersdarktrojan
bugs1583520
Bug 1583520 - Follow-up: Add comment about error dialog in testEventDialog.js. r=darktrojan
calendar/test/mozmill/eventDialog/testEventDialog.js
--- a/calendar/test/mozmill/eventDialog/testEventDialog.js
+++ b/calendar/test/mozmill/eventDialog/testEventDialog.js
@@ -158,16 +158,29 @@ function testEventDialog() {
         `)
     );
 
     // save
     event.click(eventid("button-saveandclose"));
   });
 
   // Catch and dismiss alarm.
+  //
+  // NOTE: dismissing the alarms here can cause an "error has occurred" dialog to appear:
+  //   An error occurred when when writing to the calendar Mozmill!
+  //   Error code: MODIFICATION_FAILED
+  //   If you're seeing this message after snoozing or dismissing a reminder and this is for a
+  //   calendar you do not want to add or edit events for, you can mark this calendar as read-only
+  //   to avoid such experience in future. To do so, get to the calendar properties by
+  //   right-clicking on this calendar in the list in the calendar or task view.
+  // And in the console:
+  //   console.warn: Lightning: There has been an error reading data for calendar: Mozmill.
+  //   However, this error is believed to be minor, so the program will attempt to continue.
+  //   Error code: 0x80004005. Description: generation too old for for modifyItem
+  // These errors do not appear to have any real impact on the rest of the test.
   plan_for_modal_dialog("Calendar:AlarmWindow", alarm => {
     let { eid: alarmid } = helpersForController(alarm);
     alarm.waitThenClick(alarmid("alarm-dismiss-all-button"));
   });
   wait_for_modal_dialog("Calendar:AlarmWindow", TIMEOUT_MODAL_DIALOG);
 
   // Verify event and alarm icon visible until endDate (3 full rows) and check tooltip.
   for (let row = 1; row <= 3; row++) {