Bug 1490745 - ensure we wait for the actual test page to finish loading, r=mconley

The browserLoaded() promise can be resolved by about:blank loads, it seems.
Being explicit about the load we're waiting for fixes this issue.

Differential Revision: https://phabricator.services.mozilla.com/D50818

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Gijs Kruitbosch 2019-10-28 15:58:50 +00:00
Родитель 40d307cd76
Коммит d778638ac3
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -26,8 +26,9 @@ add_task(async function test_exit_background_customize_mode() {
await BrowserTestUtils.switchTab(gBrowser, nonCustomizingTab);
await finishedCustomizing;
BrowserTestUtils.loadURI(custTab.linkedBrowser, "http://example.com");
await BrowserTestUtils.browserLoaded(custTab.linkedBrowser);
let newURL = "http://example.com/";
BrowserTestUtils.loadURI(custTab.linkedBrowser, newURL);
await BrowserTestUtils.browserLoaded(custTab.linkedBrowser, false, newURL);
Assert.equal(
gBrowser.tabContainer.querySelector("tab[customizemode=true]"),