diff --git a/test/common.js b/test/common.js index 9f01b02..f9f0f57 100644 --- a/test/common.js +++ b/test/common.js @@ -71,6 +71,7 @@ const buildPopupDom = popup => { }; const buildConfirmPage = async (url) => { + console.log(url) const webExtension = await webExtensionsJSDOM.fromFile(url); webExtension.browser.runtime.onMessage = window.browser.runtime.sendMessage; diff --git a/test/features/assignment.test.js b/test/features/assignment.test.js index ebb38dd..526342f 100644 --- a/test/features/assignment.test.js +++ b/test/features/assignment.test.js @@ -89,7 +89,7 @@ describe("Assignment Comfirm Page Feature", function () { describe("Set assignment to 'never ask' ", function () { beforeEach(async function () { // 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)}` + `&cookieStoreId=${this.webExt.tab.cookieStoreId}`); await confirmPage.document.getElementById("never-ask").click();