Bug 1702372 - Replaced BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_aboutwelcome_multistage.js. r=prathiksha
authorDisha Lamba <dldisha929@gmail.com>
Tue, 06 Apr 2021 14:19:20 +0000
changeset 574545 c82f40ba2b6590995947d54a5aa95f7fb9818df7
parent 574544 48c2e15e047279036c4160ed20126e485978beca
child 574546 1110e9414aaa15e73f57987d65667916069febac
push id140235
push userprathikshaprasadsuman@gmail.com
push dateTue, 06 Apr 2021 15:05:08 +0000
treeherderautoland@c82f40ba2b65 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersprathiksha
bugs1702372
milestone89.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1702372 - Replaced BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_aboutwelcome_multistage.js. r=prathiksha Differential Revision: https://phabricator.services.mozilla.com/D110937
browser/components/newtab/test/browser/browser_aboutwelcome_multistage.js
--- a/browser/components/newtab/test/browser/browser_aboutwelcome_multistage.js
+++ b/browser/components/newtab/test/browser/browser_aboutwelcome_multistage.js
@@ -487,17 +487,17 @@ add_task(async function test_Multistage_
 
 /**
  * Test navigating back/forward between screens
  */
 add_task(async function test_Multistage_About_Welcome_navigation() {
   let browser = await openAboutWelcome();
 
   await onButtonClick(browser, "button.primary");
-  await BrowserTestUtils.waitForCondition(() => browser.canGoBack);
+  await TestUtils.waitForCondition(() => browser.canGoBack);
   browser.goBack();
 
   await test_screen_content(
     browser,
     "multistage step 1",
     // Expected selectors:
     [
       "div.onboardingContainer",
@@ -852,17 +852,17 @@ add_task(async function test_AWMultistag
   );
 });
 
 add_task(async function test_updatesPrefOnAWOpen() {
   Services.prefs.setBoolPref(DID_SEE_ABOUT_WELCOME_PREF, false);
   await setAboutWelcomePref(true);
 
   await openAboutWelcome();
-  await BrowserTestUtils.waitForCondition(
+  await TestUtils.waitForCondition(
     () =>
       Services.prefs.getBoolPref(DID_SEE_ABOUT_WELCOME_PREF, false) === true,
     "Updated pref to seen AW"
   );
   Services.prefs.clearUserPref(DID_SEE_ABOUT_WELCOME_PREF);
 });
 
 // Test Fxaccounts MetricsFlowURI