mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1921731: Ensure to await for assertSearchMode r=urlbar-reviewers,adw
Differential Revision: https://phabricator.services.mozilla.com/D228557
This commit is contained in:
parent
e88976e3ec
commit
3f8a60fd49
@ -1151,7 +1151,7 @@ export var UrlbarTestUtils = {
|
||||
urlbarValue,
|
||||
"Urlbar value hasn't changed."
|
||||
);
|
||||
this.assertSearchMode(window, null);
|
||||
await this.assertSearchMode(window, null);
|
||||
} else if (clickClose) {
|
||||
// We need to hover the indicator to make the close button clickable in the
|
||||
// test.
|
||||
|
@ -49,7 +49,7 @@ add_task(async function searchEngineAlias() {
|
||||
gURLBar.search("@example")
|
||||
);
|
||||
ok(gURLBar.hasAttribute("focused"), "url bar is focused");
|
||||
UrlbarTestUtils.assertSearchMode(window, null);
|
||||
await UrlbarTestUtils.assertSearchMode(window, null);
|
||||
await assertUrlbarValue("@example");
|
||||
|
||||
assertOneOffButtonsVisible(false);
|
||||
|
Loading…
Reference in New Issue
Block a user