never-ask test progress

This commit is contained in:
Kendall Werts 2020-02-25 15:25:20 -06:00
parent 9002e3b3a2
commit 088b12fadd
2 changed files with 2 additions and 1 deletions

View file

@ -71,6 +71,7 @@ const buildPopupDom = popup => {
}; };
const buildConfirmPage = async (url) => { const buildConfirmPage = async (url) => {
console.log(url)
const webExtension = await webExtensionsJSDOM.fromFile(url); const webExtension = await webExtensionsJSDOM.fromFile(url);
webExtension.browser.runtime.onMessage = window.browser.runtime.sendMessage; webExtension.browser.runtime.onMessage = window.browser.runtime.sendMessage;

View file

@ -89,7 +89,7 @@ describe("Assignment Comfirm Page Feature", function () {
describe("Set assignment to 'never ask' ", function () { describe("Set assignment to 'never ask' ", function () {
beforeEach(async function () { beforeEach(async function () {
// click confirm page to always open in container // click confirm page to always open in container
const confirmPage = await buildConfirmPage("moz-extension://fake/confirm-page.html?" + const confirmPage = await buildConfirmPage("src/confirm-page.html?" +
`url=${encodeURIComponent(url)}` + `url=${encodeURIComponent(url)}` +
`&cookieStoreId=${this.webExt.tab.cookieStoreId}`); `&cookieStoreId=${this.webExt.tab.cookieStoreId}`);
await confirmPage.document.getElementById("never-ask").click(); await confirmPage.document.getElementById("never-ask").click();