Skip to content

Commit

Permalink
Make extension ID consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
mtusnio committed Aug 25, 2024
1 parent 4a1e653 commit e95b287
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion browser_tests/options.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
})
})
5 changes: 2 additions & 3 deletions browser_tests/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as puppeteer from "puppeteer";

const EXTENSION_PATH = './';
const EXTENSION_ID = "aoofnmlljjgifabglpelnbmipdfnfflk"

async function setupBrowser() {
let headless = true
Expand Down Expand Up @@ -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 };

1 change: 1 addition & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"service_worker": "worker.js",
"type": "module"
},
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu35raGvSBXpdky2IOWrwUNk/lwb/jVlmJExN380NhUAZM6+sn1PEwxDKv/iKZawWTv5sxunw3OHb87aZPCSzt0uAXg4AtBDRVPdVwVDohwXVBXgHbsLT25a+JFP1kcgStAUvU0mI2Gh+vq2Rmc8MNHzNkVg5nZ4TFE5g9ZgRpqHR8Uc0AN5llpSFMPvzZ0CnheIwCGneh0UFMoJg2Rfe0G5uUyMQ0crWcLOIt1N5aDbbGqKHZmOq0qU0vfIVCSrmkY5JFQ6sJW7LMaC+TIgVZ9TWEqhots5XXQwLCUoSOZe5HEN+QBGe5GXGKRcBZt7hbHgmkqgv0E3PFxPepQa2yQIDAQAB",
"content_scripts": [
{
"matches": [
Expand Down

0 comments on commit e95b287

Please sign in to comment.