Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
/* Any copyright is dedicated to the Public Domain.
"use strict";
add_task(async function testScreenshotButtonDisabled() {
info("Test the Screenshots button in the panel");
let screenshotBtn = document.getElementById("screenshot-button");
Assert.ok(screenshotBtn, "The screenshots button was added to the nav bar");
Assert.equal(
screenshotBtn.disabled,
false,
"Screenshots button is enabled"
);
});
await BrowserTestUtils.withNewTab("about:home", () => {
Assert.equal(
screenshotBtn.disabled,
false,
"Screenshots button is still enabled on about pages"
);
});
});