Bug 1406581 - Add a short waiting time before basic credit card autofill mochitest initialization. r=lchang
MozReview-Commit-ID: 68nQEPPCfdS
--- a/browser/extensions/formautofill/test/mochitest/test_basic_creditcard_autocomplete_form.html
+++ b/browser/extensions/formautofill/test/mochitest/test_basic_creditcard_autocomplete_form.html
@@ -84,16 +84,22 @@ async function setupFormHistory() {
{op: "add", fieldname: "cc-exp-year", value: 2023},
]);
}
initPopupListener();
// Form with history only.
add_task(async function history_only_menu_checking() {
+ // TODO: eliminate the timeout when we're able to indicate the right
+ // timing to start.
+ //
+ // After test process was re-spawning to https scheme. Wait 2 secs
+ // to ensure the environment is ready to do storage setup.
+ await sleep(2000);
await setupFormHistory();
await setInput("#cc-exp-year", "");
doKey("down");
await expectPopup();
checkMenuEntries(["2023"], false);
});