never-ask test progress
This commit is contained in:
parent
9002e3b3a2
commit
088b12fadd
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue