Open undefinedlol opened 1 year ago
Same, but with [data-testid="metametrics-i-agree"]
instead of [data-testid="onboarding-import-wallet"]
TimeoutError: Waiting for selector `[data-testid="metametrics-i-agree"]` failed: Waiting failed: 20000ms exceeded
at Timeout.<anonymous> (C:\Users\moshm\WebstormProjects\wn-ui\node_modules\puppeteer-core\lib\cjs\puppeteer\common\WaitTask.js:72:37)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
I've also noticed that sometimes the first page that loads is not an "i agree" but instead the "import-wallet"
Any solutions here? I got the same error as @moshmage
Hey @undefinedlol, Can I know if you tested it with mocha? Did it work then?
I don't get these issues anymore by using this config: https://github.com/ChainSafe/dappeteer/blob/master/docs/JEST.md#custom-example-without-preset
But you may get some others and here is my workaround:
1. environment.js
const NodeEnvironment = require('jest-environment-node').TestEnvironment
2. Have trouble starting metamask: https://github.com/ChainSafe/dappeteer/issues/311#issuecomment-1672721553
System:
Describe the bug
always get errors like
@chainsafe/dappeteer Version: 5.0.1 dappeteer: 19.6.3