Bug 1476149 - Intermittent verify failure in browser_formless_submit_chrome.js. r=Gijs
authorMarco Bonardo <mbonardo@mozilla.com>
Wed, 18 Jul 2018 12:20:27 +0000
changeset 819844 ffb7a39759332c492c681568017c57ed477179ba
parent 819843 ebc391c0f797641205ed5cbf7e1062d35300e158
child 819845 3f1a38fec70bb43c233800a852b7dd6745262fe4
push id116678
push userbmo:nchevobbe@mozilla.com
push dateWed, 18 Jul 2018 18:05:12 +0000
reviewersGijs
bugs1476149
milestone63.0a1
Bug 1476149 - Intermittent verify failure in browser_formless_submit_chrome.js. r=Gijs Make the test select() urlbar text beforem moving to the right of it Differential Revision: https://phabricator.services.mozilla.com/D2220
toolkit/components/passwordmgr/test/browser/browser_formless_submit_chrome.js
--- a/toolkit/components/passwordmgr/test/browser/browser_formless_submit_chrome.js
+++ b/toolkit/components/passwordmgr/test/browser/browser_formless_submit_chrome.js
@@ -42,16 +42,17 @@ add_task(async function test_urlbar_new_
     EventUtils.synthesizeKey("KEY_Enter");
     await BrowserTestUtils.browserLoaded(aBrowser, false, "http://mochi.test:8888/");
   });
 });
 
 add_task(async function test_urlbar_fragment_enter() {
   await withTestPage(function(aBrowser) {
     gURLBar.focus();
+    gURLBar.select();
     EventUtils.synthesizeKey("KEY_ArrowRight");
     EventUtils.sendString("#fragment");
     EventUtils.synthesizeKey("KEY_Enter");
   });
 });
 
 add_task(async function test_backButton_forwardButton() {
   await withTestPage(async function(aBrowser) {