-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
[💡 Feature]: Synpress with fully parallel run with metamask windows #832
Labels
Comments
Please guys make this post more popular, then I will create PR with this updates |
I've created simple test example for public demonstration:
each test will fail on "Access denied" error from opensea after |
Great work @itev4n7! Would love to see this as a pull request. Cheers! |
@drptbl I will create it soon :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem?
📦 The problem
Due to hardcoded line
await browser.contexts()[0].pages();
inassignWindows
function that placed incommands/playwright.js
you not able to run tests with metamask in parallel mode, because
context
always assigned to the first context during tests run, and all operations with metamask using this first instance.Describe the solution you'd like.
💡 Idea already implemented and in personal use
@noahlitvin @maxhoheiser @r3kt-eth @drptbl @neuodev
📃 Solution (Game changer)
The main idea to set through
initialSetup
andinit
functions the context you want to run each matamask separately.The code follow backward compatibility (e.g previous usage of updated methods is not ruin a code)
📝 Implementation:
📋 commands/metamask.js
📋commands/playwright.js
In case if new functions will be added - and another functions that use
context
for navigation.Also need to update cypress functions in synpress to use it with cypress commands
Example of use the implemented idea:
fullyParallel: true
into playwright config file❗Note: if you adding new network into metamask make sure that for each parallel wallet you have unique rpc url, either you will get 429 error in metamask.
Please make this post more popular, then I will create PR with this updates
Thanks in advance!
Just to simplify search in google:
Parallelisation for synpress using playwright
Parallel run of metamask in synpress
Describe alternatives you've considered.
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: