Bug 1534112 follow-up - Update test for new preferences tab; rs=bustage-fix
authorGeoff Lankow <geoff@darktrojan.net>
Wed, 24 Jul 2019 11:03:27 +1200
changeset 27183 166ccd934db34e30db0588952e598b410840cab6
parent 27182 a697f08c8b264be37996f30fccee0178ac40d8f4
child 27184 d4aa6bf9fe5f5a3c23e852ed360f92454ef575a7
push id16203
push usergeoff@darktrojan.net
push dateTue, 23 Jul 2019 23:04:38 +0000
treeherdercomm-central@166ccd934db3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1534112
Bug 1534112 follow-up - Update test for new preferences tab; rs=bustage-fix
calendar/test/mozmill/preferences/testCategoryColors.js
--- a/calendar/test/mozmill/preferences/testCategoryColors.js
+++ b/calendar/test/mozmill/preferences/testCategoryColors.js
@@ -26,19 +26,18 @@ function setupModule(module) {
     ({ content_tab_e, content_tab_eid } = collector.getModule("content-tab-helpers"));
     collector.getModule("content-tab-helpers").setupModule();
 }
 
 function testCategoryColors() {
     openLightningPrefs((tab) => {
         prefTab = tab;
 
-        content_tab_e(tab, "calPreferencesTabCategories").click();
-
         let listBox = content_tab_e(tab, "categorieslist");
+        listBox.scrollIntoView();
         controller.assert(() => listBox.itemChildren.length == 22);
 
         for (let item of listBox.itemChildren) {
             dump(`${item.firstElementChild.value}: ${item.lastElementChild.style.backgroundColor}\n`);
             controller.assert(() => item.lastElementChild.style.backgroundColor);
         }
 
         controller.click(content_tab_eid(tab, "categorieslist"), 5, 5);