Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Update page action ID in tests (landed upstream in bug 1466575)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhirsch committed Oct 10, 2018
1 parent fad3ae9 commit fc50a2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/addon/browser_screenshots_ui_check.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions test/addon/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit fc50a2f

Please sign in to comment.