saxenashivang / cypress-metamask-v2

MIT License
11 stars 14 forks source link

Not able to connect o metamask #2

Open AteqEjaz opened 2 years ago

AteqEjaz commented 2 years ago

Just added your plugin in cypress and when run test it shows following error

request to http://localhost:9222/json/version failed, reason: connect ECONNREFUSED ::1:9222

Any thoughts?

thanks.

samwarwick commented 2 years ago

I vaguely remember having this problem with localhost but can't remember how (if) I ever solved it. I found this link in my notes though: https://stackoverflow.com/questions/71363236/cypress-and-cypress-metamask-plugin-issue-connect-econnrefused-127-0-0-19222

jtordgeman commented 2 years ago

make sure you set CYPRESS_REMOTE_DEBUGGING_PORT=9222 in your ENV file (or just set the env variable to that before running yarn cy:open.