Bug 1409658 - Increase timer for waiting menubutton's binding. r=steveck draft
authorLuke Chang <lchang@mozilla.com>
Tue, 24 Oct 2017 11:29:22 +0800
changeset 685245 598f2724277e7d430255425a1c1b96cc8fcf0a38
parent 685069 9056f2ee492fa481aa86146aba236c074628e9fd
child 737094 830cfc4a4ba7540079254fc4af069bdf7eeff6e9
push id85872
push userbmo:lchang@mozilla.com
push dateTue, 24 Oct 2017 08:23:17 +0000
reviewerssteveck
bugs1409658
milestone58.0a1
Bug 1409658 - Increase timer for waiting menubutton's binding. r=steveck MozReview-Commit-ID: 9B2uGb1jt5t
browser/extensions/formautofill/test/browser/head.js
--- a/browser/extensions/formautofill/test/browser/head.js
+++ b/browser/extensions/formautofill/test/browser/head.js
@@ -229,17 +229,17 @@ function getNotification(index = 0) {
 async function clickDoorhangerButton(button, index) {
   let popuphidden = BrowserTestUtils.waitForEvent(PopupNotifications.panel, "popuphidden");
 
   if (button == MAIN_BUTTON || button == SECONDARY_BUTTON) {
     EventUtils.synthesizeMouseAtCenter(getNotification()[button], {});
   } else if (button == MENU_BUTTON) {
     // Click the dropmarker arrow and wait for the menu to show up.
     await BrowserTestUtils.waitForCondition(() => getNotification().menubutton);
-    await sleep(); // menubutton needs extra time for binding
+    await sleep(2000); // menubutton needs extra time for binding
     let notification = getNotification();
     ok(notification.menubutton, "notification menupopup displayed");
     let dropdownPromise =
       BrowserTestUtils.waitForEvent(notification.menupopup, "popupshown");
     await EventUtils.synthesizeMouseAtCenter(notification.menubutton, {});
     await dropdownPromise;
 
     let actionMenuItem = notification.querySelectorAll("menuitem")[index];