diff --git a/toolkit/components/passwordmgr/test/mochitest/test_insecure_form_field_autocomplete.html b/toolkit/components/passwordmgr/test/mochitest/test_insecure_form_field_autocomplete.html index 30de6bfbb813..7b583f2b2426 100644 --- a/toolkit/components/passwordmgr/test/mochitest/test_insecure_form_field_autocomplete.html +++ b/toolkit/components/passwordmgr/test/mochitest/test_insecure_form_field_autocomplete.html @@ -879,12 +879,10 @@ add_task(async function test_form12_formless() { checkACForm("", ""); let shownPromise = promiseACShown(); synthesizeKey("KEY_ArrowDown"); // open - let results = await shownPromise; + await shownPromise; - let expectedMenuItems = ["This connection is not secure. Logins entered here could be compromised. Learn More", - "testuser10"]; - checkAutoCompleteResults(results, expectedMenuItems, "mochi.test", "Check all menuitems are displayed correctly."); synthesizeKey("KEY_ArrowDown"); // skip insecure warning + // Trigger autocomplete synthesizeKey("KEY_ArrowDown"); checkACForm("", ""); // value shouldn't update let processedPromise = promiseFormsProcessed();