diff --git a/browser_tests/options.test.js b/browser_tests/options.test.js index d2c0e66..d79922b 100644 --- a/browser_tests/options.test.js +++ b/browser_tests/options.test.js @@ -19,6 +19,6 @@ afterEach(async () => { describe("the options page", function () { it("loads properly", async () => { const page = await browser.newPage(); - await page.goto("chrome-extension://acjkjmnpaljkemhfmmoddfpblmigpmji/options.html"); + await page.goto(`chrome-extension://${utils.EXTENSION_ID}/options.html`); }) }) diff --git a/browser_tests/utils.js b/browser_tests/utils.js index 90b7dbc..c8fc438 100644 --- a/browser_tests/utils.js +++ b/browser_tests/utils.js @@ -1,6 +1,7 @@ import * as puppeteer from "puppeteer"; const EXTENSION_PATH = './'; +const EXTENSION_ID = "aoofnmlljjgifabglpelnbmipdfnfflk" async function setupBrowser() { let headless = true @@ -56,7 +57,5 @@ async function wait(miliseconds) { await new Promise((r) => setTimeout(r, miliseconds)); } -export { - getExtensionStatus, setupBrowser, toggleExtension, wait -}; +export { EXTENSION_ID, getExtensionStatus, setupBrowser, toggleExtension, wait }; diff --git a/manifest.json b/manifest.json index 2c4f6d0..04ac74c 100644 --- a/manifest.json +++ b/manifest.json @@ -19,6 +19,7 @@ "service_worker": "worker.js", "type": "module" }, + "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu35raGvSBXpdky2IOWrwUNk/lwb/jVlmJExN380NhUAZM6+sn1PEwxDKv/iKZawWTv5sxunw3OHb87aZPCSzt0uAXg4AtBDRVPdVwVDohwXVBXgHbsLT25a+JFP1kcgStAUvU0mI2Gh+vq2Rmc8MNHzNkVg5nZ4TFE5g9ZgRpqHR8Uc0AN5llpSFMPvzZ0CnheIwCGneh0UFMoJg2Rfe0G5uUyMQ0crWcLOIt1N5aDbbGqKHZmOq0qU0vfIVCSrmkY5JFQ6sJW7LMaC+TIgVZ9TWEqhots5XXQwLCUoSOZe5HEN+QBGe5GXGKRcBZt7hbHgmkqgv0E3PFxPepQa2yQIDAQAB", "content_scripts": [ { "matches": [