Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests in Firefox #59

Open
fregante opened this issue Mar 9, 2023 · 1 comment
Open

Run tests in Firefox #59

fregante opened this issue Mar 9, 2023 · 1 comment

Comments

@fregante
Copy link
Owner

fregante commented Mar 9, 2023

Quite difficult, but I wanted to open an issue to link to my last attempt:

fregante/content-scripts-register-polyfill#58 (comment)

We're here hoping that someone will simplify the process of starting Firefox and loading an extension into it without having to copy-paste puppeteer/puppeteer#5532 (comment) or mozilla/web-ext#1927

@christian-bromann
Copy link

Hey @fregante 👋

I solved this using WebdriverIO, using:

const extension = await fs.readFile(path.resolve(__dirname, '..', `runme-firefox-v${pkg.version}.xpi`))
await browser.installAddOn(extension.toString('base64'), true)

My web extension registers a content script that modifies the web app. It has e2e tests set up to validate that the modifications are actually happening. They run with Chrome and Firefox in parallel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants