Bug 1628701 follow-up - adjust calendar tests for menulist DOM change. rs=bustage-fix
authorGeoff Lankow <geoff@darktrojan.net>
Fri, 10 Apr 2020 10:28:27 +1200
changeset 38765 468302900d211f939979c77e3d3c2025d1c6432f
parent 38764 27f756d7fac7f2f2bb6055db00f45bafe0d776b9
child 38766 f6aaa12818d0440dfc1dc6e2567070d65670ba72
push id401
push userclokep@gmail.com
push dateMon, 01 Jun 2020 20:41:59 +0000
reviewersbustage-fix
bugs1628701
Bug 1628701 follow-up - adjust calendar tests for menulist DOM change. rs=bustage-fix
calendar/test/modules/ItemEditingHelpers.jsm
--- a/calendar/test/modules/ItemEditingHelpers.jsm
+++ b/calendar/test/modules/ItemEditingHelpers.jsm
@@ -55,37 +55,37 @@ var ATTENDEES_ROW = `
 // Only for Tasks.
 var PERCENT_COMPLETE_INPUT = `
     id("event-grid")/id("event-grid-todo-status-row")/id("event-grid-todo-status-td")/
     id("event-grid-todo-status-picker-box")/id("percent-complete-textbox")
 `;
 
 // To be appended to the path for a date- or timepicker.
 var DATE_INPUT = `
-    {"class":"datepicker-menulist"}/{"class":"menulist-input"}
+    {"class":"datepicker-menulist"}/shadow/{"part":"text-input"}
 `;
 var TIME_INPUT = `
-    {"class":"timepicker-menulist"}/{"class":"menulist-input"}
+    {"class":"timepicker-menulist"}/shadow/{"part":"text-input"}
 `;
 
 // The following can be used as is.
 var REC_DLG_ACCEPT = `
     /{"windowtype":"Calendar:EventDialog:Recurrence"}/id("calendar-event-dialog-recurrence")
     /shadow/{"class":"dialog-button-box"}/{"dlgtype":"accept"}
 `;
 var REC_DLG_DAYS = `
     /{"windowtype":"Calendar:EventDialog:Recurrence"}/id("calendar-event-dialog-recurrence")
     /id("recurrence-pattern-groupbox")/{"flex":"1"}/[1]/
     id("period-deck")/id("period-deck-weekly-box")/[1]/id("daypicker-weekday")
 `;
 var REC_DLG_UNTIL_INPUT = `
     /{"windowtype":"Calendar:EventDialog:Recurrence"}/id("calendar-event-dialog-recurrence")
     /id("recurrence-range-groupbox")/[1]/id("recurrence-duration")
     /id("recurrence-range-until-box")/id("repeat-until-date")/
-    {"class":"datepicker-menulist"}/{"class":"menulist-input"}
+    ${DATE_INPUT}
 `;
 
 function sleep(window) {
   return new Promise(resolve => window.setTimeout(resolve));
 }
 
 function helpersForEditUI(controller) {
   function selector(sel) {