TenKeyLabs / dappwright

🏌🏼‍E2E testing for dApps using Playwright + MetaMask & Coinbase Wallet
https://www.npmjs.com/package/@tenkeylabs/dappwright
Other
83 stars 21 forks source link

Metamask add network failure #290

Closed IGoRFonin closed 8 months ago

IGoRFonin commented 8 months ago

Describe the bug In debug mode: After adding the network, the window with "got it" appears earlier and the script cannot go any further

To Reproduce In main branch start tests few times, one of the times the test for adding a network will not pass. 1) Init fresh playwright project 2) install "@tenkeylabs/dappwright": "2.7.1" 3) make fixture with dappwright.bootstrap 4) set headless to false 5) then add network

    await wallet.addNetwork({
      networkName: "BNB",
      rpc: "https://binance.llamarpc.com",
      chainId: 56,
      symbol: "BNB",
    });

6) run playwright in debug mode npx playwright test --debug

Screenshots

image

System: