зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1373650. Disable Report Site Issue page action before running page action tests. r=adw
MozReview-Commit-ID: J5gAWBvw8td --HG-- extra : rebase_source : 61823de48dcbc475aed6dee8e54ae20d4a1e0700
This commit is contained in:
Родитель
71e035473c
Коммит
9130bd250b
|
@ -14,6 +14,8 @@ add_task(async function init() {
|
|||
gBrowser,
|
||||
url: "http://example.com/",
|
||||
});
|
||||
|
||||
await disableNonReleaseActions();
|
||||
registerCleanupFunction(async () => {
|
||||
await BrowserTestUtils.removeTab(tab);
|
||||
});
|
||||
|
|
|
@ -228,3 +228,14 @@ function getPopupNotificationNode() {
|
|||
return popupNotifications[0];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Disable non-release page actions (that are tested elsewhere).
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
async function disableNonReleaseActions() {
|
||||
if (AppConstants.MOZ_DEV_EDITION || AppConstants.NIGHTLY_BUILD) {
|
||||
await SpecialPowers.pushPrefEnv({set: [["extensions.webcompat-reporter.enabled", false]]});
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче