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:
Mike Taylor 2017-08-09 14:53:53 -04:00
Родитель 71e035473c
Коммит 9130bd250b
2 изменённых файлов: 13 добавлений и 0 удалений

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

@ -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]]});
}
}