TenKeyLabs / dappwright

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

Shown notification popup #318

Open alejogranerorequest opened 5 months ago

alejogranerorequest commented 5 months ago

@osis , do we have a way to show the Metamask notification popup by code? I'm having issues with wallet.confirmTransaction() because sometimes is not shown or remains hidden under extension icon. If I do wallet.page.bringToFront() is shows the Metamask page instead of the notification to approve.

What I can do?

osis commented 3 months ago

You would have to initiate an action that opens a popup. This is why the test framework in Dappwright has a sample app to test and debug these flows. https://github.com/TenKeyLabs/dappwright/tree/main/test/dapp

I'm not aware of any other way.