This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
dAppeteer with Jest not working in Headless mode #270
Open
Description
Describe the bug
I am facing an issue while running dAppeteer with jest in headless mode, in setup.js launch runs successfully but setupMetaMask doesn't work properly, similar issue is dappeteer.bootstrap() runs perfectly without headless mode
To Reproduce
Steps to reproduce the behavior:
- Follow the doc to run DAppteer with Jest https://github.com/ChainSafe/dappeteer/blob/master/docs/JEST.md
- const browser = await launch(puppeteer, PUPPETEER_CONFIG), add the Headless: true option, BTW doc needs to be updated.
- run the tests
Logs
Determining test suites to run...
Running tests on MetaMask version v10.23.0
Flask version: false,
Headless: true
Expected behavior
Tests should run, and logs should be seen to get show progress or give error
System:
- OS: windows
- OS version windows 10
- NodeJs version v16.16.0
- dAppeteer version ^4.2.0
- testing framework jest
- testing framework version 27.5.1
Additional context
A similar bug is seen when we run script without jest from as in README.md;
https://github.com/ChainSafe/dappeteer
const { metaMask, browser } = await dappeteer.bootstrap({
browser: "chrome",
headless: true
});