Bug 1507885 - Screenshots policy test should check for the correct PageAction. r=_6a68
authorFelipe Gomes <felipc@gmail.com>
Fri, 16 Nov 2018 23:41:41 +0000
changeset 503311 cd0bb0a35c3d4d8de65e504e11095b3f306b6815
parent 503310 9a2cf737f3e3d623ad99857070f4646e4be45388
child 503312 2b51cc7acba5fdac3642d3972e489d297bc608c2
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewers_6a68
bugs1507885
milestone65.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 1507885 - Screenshots policy test should check for the correct PageAction. r=_6a68 Differential Revision: https://phabricator.services.mozilla.com/D12160
browser/components/enterprisepolicies/tests/browser/disable_fxscreenshots/browser_policy_disable_fxscreenshots.js
--- a/browser/components/enterprisepolicies/tests/browser/disable_fxscreenshots/browser_policy_disable_fxscreenshots.js
+++ b/browser/components/enterprisepolicies/tests/browser/disable_fxscreenshots/browser_policy_disable_fxscreenshots.js
@@ -2,17 +2,17 @@
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 "use strict";
 
 const PREF_DISABLE_FX_SCREENSHOTS = "extensions.screenshots.disabled";
 
 async function checkScreenshots(shouldBeEnabled) {
   return BrowserTestUtils.waitForCondition(() => {
-    return !!PageActions.actionForID("screenshots") == shouldBeEnabled;
+    return !!PageActions.actionForID("screenshots_mozilla_org") == shouldBeEnabled;
   }, "Expecting screenshots to be " + shouldBeEnabled);
 }
 
 add_task(async function test_disable_firefox_screenshots() {
   // Dynamically toggling the PREF_DISABLE_FX_SCREENSHOTS is very finicky, because
   // that pref is being watched, and it makes the Firefox Screenshots system add-on
   // to start or stop, causing intermittency.
   //