🐛 Bug Report
On puppeteer 24.1.1, and jest-puppeteer 11.0.0, using the firefox configuration from the README fails to initialize. See error below:
> jest-puppeteer-test@1.0.0 test
> jest
FAIL ./google.test.js
● Test suite failed to run
ProtocolError: Protocol error (Target.getBrowserContexts): undefined
at Callback.<instance_members_initializer> (node_modules/puppeteer-core/src/common/CallbackRegistry.ts:125:12)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.161 s
Ran all test suites.
To Reproduce
- In
jest-puppeteer.config.js, use the configuration
module.exports = {
launch: {
browser: 'firefox',
headless: process.env.HEADLESS !== 'false',
},
};
- Run test script (i.e.
npm run test) and check if browser launches successfully.
A minimal repo is included below
Expected behavior
Firefox browser launches and connects for tests.
Link to repl or repo
https://github.com/gvanhorne/jest-puppeteer-firefox
Environment
## System:
- OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
- CPU: (8) x64 Intel(R) Xeon(R) E-2174G CPU @ 3.80GHz
- Memory: 9.74 GB / 15.54 GB
- Container: Yes
- Shell: 5.1.16 - /bin/bash
## Binaries:
- Node: 22.5.1 - ~/.nvm/versions/node/v22.5.1/bin/node
- npm: 10.8.2 - ~/.nvm/versions/node/v22.5.1/bin/npm
## npmPackages:
- jest-puppeteer: ^11.0.0 => 11.0.0
Anything I'm missing here as to why this wouldn't work? The same configuration replacing firefox with chrome runs without complaint.
🐛 Bug Report
On puppeteer 24.1.1, and jest-puppeteer 11.0.0, using the firefox configuration from the README fails to initialize. See error below:
To Reproduce
jest-puppeteer.config.js, use the configurationnpm run test) and check if browser launches successfully.A minimal repo is included below
Expected behavior
Firefox browser launches and connects for tests.
Link to repl or repo
https://github.com/gvanhorne/jest-puppeteer-firefox
Environment
Anything I'm missing here as to why this wouldn't work? The same configuration replacing
firefoxwithchromeruns without complaint.