зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1703813 - Replaced BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_policy_extensions.js. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D111263
This commit is contained in:
Родитель
efe5cc9385
Коммит
98ea52a477
|
@ -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"]');
|
||||
|
|
Загрузка…
Ссылка в новой задаче