Bug 1554630 - ajust testTodayPane.js to account for tabmail-tab now being wrapped in an arrowscrollbox. r=jorgk DONTBUILD
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Mon, 01 Jul 2019 10:26:49 +0300
changeset 36000 0a4f2477de1d93053d5ffefb89b32a58a600412e
parent 35999 b02d7fcf98333e52269e6f83f9c03f65b0770505
child 36001 73ce6f5f060aa2bc387bf5d27ecec55deee71c12
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersjorgk
bugs1554630
Bug 1554630 - ajust testTodayPane.js to account for tabmail-tab now being wrapped in an arrowscrollbox. r=jorgk DONTBUILD
calendar/test/mozmill/testTodayPane.js
--- a/calendar/test/mozmill/testTodayPane.js
+++ b/calendar/test/mozmill/testTodayPane.js
@@ -33,17 +33,16 @@ function setupModule(module) {
     Object.assign(module, helpersForController(controller));
 
     ({ setData } = collector.getModule("item-editing-helpers"));
     collector.getModule("item-editing-helpers").setupModule(module);
 
     createCalendar(controller, CALENDARNAME);
 }
 
-testTodayPane.__force_skip__ = true;
 function testTodayPane() {
     let createEvent = (hour, name) => {
         let eventBox = lookupEventBox("day", CANVAS_BOX, null, 1, hour);
         invokeEventDialog(controller, eventBox, (event, iframe) => {
             let { eid: eventid } = helpersForController(event);
 
             setData(event, iframe, { title: name });
             event.click(eventid("button-saveandclose"));
@@ -77,17 +76,17 @@ function testTodayPane() {
     createEvent(9, "Tomorrow's Event");
 
     // Go 5 days forward and add an event.
     viewForward(controller, 5);
     createEvent(9, "Future Event");
 
     // Go to mail tab.
     controller.click(lookup(`
-        /id("messengerWindow")/id("navigation-toolbox")/id("tabs-toolbar")/id("tabmail-tabs")/[0]
+        /id("messengerWindow")/id("navigation-toolbox")/id("tabs-toolbar")/id("tabmail-tabs")/[1]/[0]
     `));
     sleep();
 
     // Verify today pane open.
     controller.assertNotDOMProperty(lookup(TODAY_PANE), "collapsed");
 
     // Verify today pane's date.
     controller.assertValue(eid("datevalue-label"), (new Date()).getDate());