Skip to content
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
@asimpk

Description

@asimpk

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:

  1. Follow the doc to run DAppteer with Jest https://github.com/ChainSafe/dappeteer/blob/master/docs/JEST.md
  2. const browser = await launch(puppeteer, PUPPETEER_CONFIG), add the Headless: true option, BTW doc needs to be updated.
  3. 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
});

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions