From fc50a2f1c26c4f963016b6fdfea7b2687adedb84 Mon Sep 17 00:00:00 2001 From: Jared Hirsch Date: Wed, 10 Oct 2018 13:14:21 -0700 Subject: [PATCH] Update page action ID in tests (landed upstream in bug 1466575) --- test/addon/browser_screenshots_ui_check.js | 2 +- test/addon/head.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/addon/browser_screenshots_ui_check.js b/test/addon/browser_screenshots_ui_check.js index 8a0dd2979b..700263986a 100644 --- a/test/addon/browser_screenshots_ui_check.js +++ b/test/addon/browser_screenshots_ui_check.js @@ -1,6 +1,6 @@ "use strict"; -const BUTTON_ID = "pageAction-panel-screenshots"; +const BUTTON_ID = "pageAction-panel-screenshots_mozilla_org"; function checkElements(expectPresent, l) { for (const id of l) { diff --git a/test/addon/head.js b/test/addon/head.js index 7713126e4b..da19bf1a64 100644 --- a/test/addon/head.js +++ b/test/addon/head.js @@ -16,7 +16,7 @@ function promiseScreenshotsEnabled() { info("Screenshots is not enabled"); return new Promise((resolve, reject) => { const interval = setInterval(() => { - const action = PageActions.actionForID("screenshots"); + const action = PageActions.actionForID("screenshots_mozilla_org"); if (action) { info("screenshots page action created"); clearInterval(interval); @@ -35,7 +35,7 @@ function promiseScreenshotsDisabled() { } return new Promise((resolve, reject) => { const interval = setInterval(() => { - const action = PageActions.actionForID("screenshots"); + const action = PageActions.actionForID("screenshots_mozilla_org"); if (!action) { info("screenshots page action removed"); clearInterval(interval);