Bug 1552410 - Fix intermittent failure in browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar.js. r=mak, a=test-only
authorDrew Willcoxon <adw@mozilla.com>
Thu, 27 Jun 2019 09:23:02 +0000
changeset 534064 060e5273db16d8e5fccbe0b501909a88f1763bdb
parent 534063 6545fd26718da75b49b7b991b89ca9ac13775334
child 534065 beb982d67cbd13932e82f15e9002624cb1646aee
push id11514
push userryanvm@gmail.com
push dateFri, 28 Jun 2019 15:01:50 +0000
treeherdermozilla-beta@828a590988ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak, test-only
bugs1552410, 1548111
milestone68.0
Bug 1552410 - Fix intermittent failure in browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar.js. r=mak, a=test-only No failures on try after many retriggers: https://treeherder.mozilla.org/#/jobs?repo=try&revision=95f6afa49be33f1a407208a476df5631d6cfbc81&selectedJob=253610974 (Although an intermittent timeout, which is another bug, bug 1548111, did happen.) Differential Revision: https://phabricator.services.mozilla.com/D36143
browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar.js
--- a/browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar.js
+++ b/browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar.js
@@ -187,13 +187,16 @@ async function checkAutocompleteResults(
 
     info(`Search for ${url} in open tabs.`);
     let inExpected = url in expected;
     Assert.ok(inExpected, `${url} was found in autocomplete, was ${inExpected ? "" : "not "} expected`);
     // Remove the found entry from expected results.
     delete expected[url];
   }
 
+  await UrlbarTestUtils.promisePopupClose(window,
+    () => EventUtils.synthesizeKey("KEY_Escape"));
+
   // Make sure there is no reported open page that is not open.
   for (let entry in expected) {
     Assert.ok(!entry, `Should have been found in autocomplete`);
   }
 }