Bug 1921731: Ensure to await for assertSearchMode r=urlbar-reviewers,adw

Differential Revision: https://phabricator.services.mozilla.com/D228557
This commit is contained in:
Daisuke Akatsuka 2024-11-11 05:44:28 +00:00
parent e88976e3ec
commit 3f8a60fd49
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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);