Bug 1553778 - fix and re-enable test_buttons_collapse_and_expand. rs=bustage-fix
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Fri, 24 May 2019 13:40:09 +0300
changeset 35682 1aa9b4cb10abaf12f2c3eadae52c6ae32f3f10d2
parent 35681 d5d5ade9fbd66e53a8f9e7ff921d1c36348aefc0
child 35683 222e2a74d5dab0d18f6b46308923cbd70abdaa8e
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersbustage-fix
bugs1553778
Bug 1553778 - fix and re-enable test_buttons_collapse_and_expand. rs=bustage-fix
mail/test/mozmill/quick-filter-bar/test-display-issues.js
--- a/mail/test/mozmill/quick-filter-bar/test-display-issues.js
+++ b/mail/test/mozmill/quick-filter-bar/test-display-issues.js
@@ -65,24 +65,22 @@ function setupModule(module) {
 
 /**
  * When the window gets too narrow the collapsible button labels need to get
  *  gone.  Then they need to come back when we get large enough again.
  *
  * Because the mozmill window sizing is weird and confusing, we force our size
  *  in both cases but do save/restore around our test.
  */
-test_buttons_collapse_and_expand.__force_skip__ = true;
 function test_buttons_collapse_and_expand() {
   assert_quick_filter_bar_visible(true); // precondition
 
   let qfbCollapsy = mc.e("quick-filter-bar-collapsible-buttons");
   let qfbExemplarButton = mc.e("qfb-unread"); // (arbitrary labeled button)
-  let qfbExemplarLabel = mc.window
-                           .document.getAnonymousNodes(qfbExemplarButton)[1];
+  let qfbExemplarLabel = qfbExemplarButton.querySelector(".toolbarbutton-text");
 
   function logState(aWhen) {
     mark_action("test", "log_window_state",
                 [aWhen,
                  "location:", mc.window.screenX, mc.window.screenY,
                  "dims:", mc.window.outerWidth, mc.window.outerHeight,
                  "Collapsy bar width:", qfbCollapsy.clientWidth,
                  "shrunk?", qfbCollapsy.getAttribute("shrink")]);