Bug 1749328 - Intermittent failure in browser_interactions_typing.js r=Standard8 a=test-only

The test test_typing_and_reload() was failing, I believe because without waiting for target url in browserLoaded(), we would proceed on the about:blank load and the new interaction write would race the test.

Differential Revision: https://phabricator.services.mozilla.com/D136186
This commit is contained in:
Andrew Creskey 2022-01-20 14:10:36 +00:00
parent 8c2390af3f
commit 59fa29a2dd

View File

@ -240,7 +240,7 @@ add_task(async function test_typing_and_reload() {
info("reload");
browser.reload();
await BrowserTestUtils.browserLoaded(browser);
await BrowserTestUtils.browserLoaded(browser, false, TEST_URL);
// First typing should have been recorded
await assertDatabaseValues([
@ -255,7 +255,7 @@ add_task(async function test_typing_and_reload() {
info("reload");
browser.reload();
await BrowserTestUtils.browserLoaded(browser);
await BrowserTestUtils.browserLoaded(browser, false, TEST_URL);
// Second typing should have been recorded
await assertDatabaseValues([