How to fully reset MetaMask between tests? #769
Unanswered
sebastiendan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It's possible but has to be introduced to synpress. Here's a mostly working solution:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm interested in the cleanest way to reset MetaMask's state between tests. We have the
disconnectMetamaskWalletFromAllDapps
andresetMetamaskAccount
methods but I couldn't find anything for networks.Because of this, tests cannot be fully isolated and stateless when one's switching networks, i.e., the new network will remain active for the next test.
Beta Was this translation helpful? Give feedback.
All reactions