-
Notifications
You must be signed in to change notification settings - Fork 696
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
[test:e2e] Check if playwright offers a quicker/more reliable framework for web3 testing #1022
Comments
Docs on using playwright with chrome extensions: Online monitoring service for playwritght and puppeteer in case we want to consider running our e2e tests periodically from multiple locations around the world: |
@ivelin Were you able to test whether playwright and metamask would play nicely together? |
@0xJem FYI, playing with this Playwright setup for Gitpod today: |
0xJem UPDATE: I found a gitpod image that works well with both puppeteer and playwright. Also includes a debug tool for both: When it comes to MetaMask, I think we have two options with pros and cons:
Since we use the WalletConnect API as a wallet connector on mobile apps and direct MetaMask conncetion on Desktop, it might be better to work with wallet abstractions and mockups for now until we get a stable e2e API from WalletConnect and/or MetaMask. Looks like both projects are interested in working on this in 2022. Thoughts? |
Puppeteer supports Firefox, Chromium and Chrome as testing targets, by the way. But that does exclude others. If we can abstract the wallet client out and have specific tests to ensure that wallet X works, I think that would be ideal. I assume that mocking the WalletConnect API is non-trivial, so is this something that we can tackle now? Assuming the mocking is trivial, how much easier is it to use playwright? |
Correct. Does not support
Yes, I agree. Even though wallet vendors responded positively to the idea, none committed to an action plan so far. Stubbing out the WalletConnect API seems like our best bet for the time being. I believe its possible and am happy to work on that.
Most of my experience is with cypress. From what I can tell, puppeteer and playwright are very similar and shouldn't be too hard to use either. Related note: |
Just for historical context. Listing below the ongoing threads with wallet providers for E2E Test APIs:
|
That's fair. I would like to get the work I'm doing with the v2 contracts deployment and docker done (#655 ), even if we don't populate the e2e tests immediately afterwards, as it will be difficult to context-switch back. |
No description provided.
The text was updated successfully, but these errors were encountered: