-
Notifications
You must be signed in to change notification settings - Fork 154
dAppeteer with Jest not working in Headless mode #270
Comments
Thanks for pointing issue. |
Sorry, I'm not using any framework right now, I first tried to use synpress |
try to install playwright or puppeteer and then run tests |
Yeah I'm using "puppeteer": "^19.6.2", as that, was the requirement for setup, tests running successfully but only when not in headless mode |
it is confirmed that there is a bug, for now, the workaround is to use the playwright observed notes dappeteer/src/setup/setupMetaMask.ts Lines 96 to 113 in ee4a513
for some reason, targetcreated is never triggered in puppeteer
|
simple repo for reproducing issue https://github.com/BeroBurny/dappeteer-jest |
Thanks @BeroBurny , by using playwright, it throws an exception from environment.js |
@asimpk the issue is due to the puppeteer version. Please set version 14.0.0 in package.json until we update it on the dappeteer side |
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:
Logs
Expected behavior
Tests should run, and logs should be seen to get show progress or give error
System:
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
});
The text was updated successfully, but these errors were encountered: