-
-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metamask window freeze after 'cy.confirmMetamaskTransaction() intermittently '[🐛 Bug]: <title> #1042
Comments
Hey! How often does this happen? I'm 99% sure that this is due to MetaMask waiting for a response from the RPC 🤔 |
Related to #411 The error in this case is:
|
Haven't tested it myself yet. Agree that this is related to #411, but how is that error you just showcased linked to all of this @louis-md? The problem in question is about the spinner and not notification window not appearing. I'm asking out of curiosity cause at this point you'll have better knowledge than I do on this topic 🤔 I still believe this is, unfortunately, related to how on rare occasions MetaMask hangs while waiting for an RPC response. I've had it happen to me a few times while writing the new version of Synpress, but not during confirming transactions but rather at the beginning of the onboarding process to MetaMask. |
After spending some time on this I think I went on the bottom of it. The command To make it work using multiple transactions, I used Line 1192 in 00abaad
This is a dirty fix, hopefully this could be solved in future versions by passing an option to @duckception, the error I mentioned actually originated from my code, once fixed I had the same error than originally mentioned by @LsilvaPorto. Hope it helps! |
a lot, every time I need to call this method more than twice consecutively, that happens |
🔎 Have you searched existing issues to avoid duplicates?
🧪 Have you tested your code using latest version of Synpress?
💡 Are you able to provide enough information to be able to reproduce your issue locally?
Synpress version
3.7.2-beta.9
Node.js version
18.18.2
Operating system
MacOS Sonoma 14.2 (23C64)
Run mode
Synpress (standalone)
CI platform (if applicable)
No response
Are you running your tests inside docker? (if applicable)
What happened?
When I'm trying to confirm a transaction with synpress, a spin appears in metamask window, it doesn't close and test fails, it happens intermittently, but always with the method cy.confirmMetamaskTransaction()
What is your expected behavior?
Metamask window close after transaction
How to reproduce the bug.
open a page
connect metamask
accept 3 transactions one after other
Relevant log output
The text was updated successfully, but these errors were encountered: