From 98ea52a4770f33056a7c818ad7bd989cbf9ac9b0 Mon Sep 17 00:00:00 2001 From: Sarah Ukoha Date: Thu, 8 Apr 2021 20:17:51 +0000 Subject: [PATCH] Bug 1703813 - Replaced BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_policy_extensions.js. r=prathiksha Differential Revision: https://phabricator.services.mozilla.com/D111263 --- .../tests/browser/browser_policy_extensions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/components/enterprisepolicies/tests/browser/browser_policy_extensions.js b/browser/components/enterprisepolicies/tests/browser/browser_policy_extensions.js index 90be2ae4cde8..7d1313548b2c 100644 --- a/browser/components/enterprisepolicies/tests/browser/browser_policy_extensions.js +++ b/browser/components/enterprisepolicies/tests/browser/browser_policy_extensions.js @@ -7,7 +7,7 @@ const BASE_URL = "http://mochi.test:8888/browser/browser/components/enterprisepolicies/tests/browser"; async function isExtensionLocked(win, addonID) { - let addonCard = await BrowserTestUtils.waitForCondition(() => { + let addonCard = await TestUtils.waitForCondition(() => { return win.document.querySelector(`addon-card[addon-id="${addonID}"]`); }, `Get addon-card for "${addonID}"`); let disableBtn = addonCard.querySelector('[action="toggle-disabled"]');