You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to setup Web3-Mock using Playwright but I cannot use it properly with Cypress. Lets say I have a very simple use case. I mock the metamask wallet and then I want to test that mock using @metamask/test-dapp. Nothing is working as expected and I get provider errors:
The thing is I am able to use window object in the e2e test code but this is not what I need. I want the mock working in e2e manual test - for example by clicking on the "ETH ACCOUNTS" button.
The text was updated successfully, but these errors were encountered:
matstyler
changed the title
Web3-Mock doesn't work with the @metamask/test-dapp
Web3-Mock doesn't work with a real application
Jun 2, 2024
matstyler
changed the title
Web3-Mock doesn't work with a real application
Web3-Mock doesn't work with a real application (MetaMask/test-dapp)
Jun 2, 2024
I was able to setup
Web3-Mock
using Playwright but I cannot use it properly with Cypress. Lets say I have a very simple use case. I mock the metamask wallet and then I want to test that mock using@metamask/test-dapp
. Nothing is working as expected and I get provider errors:The thing is I am able to use
window
object in the e2e test code but this is not what I need. I want the mock working in e2e manual test - for example by clicking on the "ETH ACCOUNTS" button.My code for this simple example:
The text was updated successfully, but these errors were encountered: