Bug 1272849 - browser_notifications_2.js: Properly clear the password field in the doorhanger. r=intermittent
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Fri, 19 Apr 2019 13:49:46 -0700
changeset 470328 7701a0d0fb8bc54265cd7d2f55577e0356cdc43c
parent 470313 2049f94666461e2eff7e67f026730a4932c98788
child 470329 f8541439e10186980ecea712820310b08144ec96
push id35899
push usershindli@mozilla.com
push dateMon, 22 Apr 2019 09:42:40 +0000
treeherdermozilla-central@b783cd5203ea [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersintermittent
bugs1272849
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1272849 - browser_notifications_2.js: Properly clear the password field in the doorhanger. r=intermittent
toolkit/components/passwordmgr/test/browser/browser.ini
toolkit/components/passwordmgr/test/browser/browser_notifications_2.js
--- a/toolkit/components/passwordmgr/test/browser/browser.ini
+++ b/toolkit/components/passwordmgr/test/browser/browser.ini
@@ -66,17 +66,17 @@ skip-if = verify
 skip-if = os == "win" && os_version == "10.0" && debug # bug 1530935
 [browser_insecurePasswordConsoleWarning.js]
 skip-if = verify
 [browser_master_password_autocomplete.js]
 [browser_notifications.js]
 [browser_notifications_username.js]
 [browser_notifications_password.js]
 [browser_notifications_2.js]
-skip-if = (os == "linux") || (os == "win") || (os == "mac") # Bug 1272849 Main action button disabled state intermittent, Bug 1272849
+skip-if = !verify # Bug 1272849
 [browser_openPasswordManager.js]
 [browser_passwordmgr_editing.js]
 skip-if = os == "linux"
 [browser_context_menu.js]
 [browser_context_menu_iframe.js]
 [browser_passwordmgr_contextmenu.js]
 subsuite = clipboard
 [browser_passwordmgr_fields.js]
--- a/toolkit/components/passwordmgr/test/browser/browser_notifications_2.js
+++ b/toolkit/components/passwordmgr/test/browser/browser_notifications_2.js
@@ -30,16 +30,17 @@ add_task(async function test_empty_passw
     await promiseShown;
 
     let notificationElement = PopupNotifications.panel.childNodes[0];
     let passwordTextbox = notificationElement.querySelector("#password-notification-password");
 
     // Synthesize input to empty the field
     passwordTextbox.focus();
     await EventUtils.synthesizeKey("KEY_ArrowRight");
+    await EventUtils.synthesizeKey("KEY_ArrowRight");
     await EventUtils.synthesizeKey("KEY_Backspace");
     await EventUtils.synthesizeKey("KEY_Backspace");
 
     let mainActionButton = notificationElement.button;
     Assert.ok(mainActionButton.disabled, "Main action button is disabled");
   });
 });