-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
cy.task('acceptMetamaskAccess')
does not work in Codespaces
#498
Comments
Hey @fionnachan, thanks for report! I will investigate this today. Thanks, |
I'm having same issue runing cypress in xvfb on 2.3.2 |
@roninjin10 It also works locally but fails on Codespaces? Could you please upload a video from CI? Also, a sample failing e2e test would be very welcome 🙏. |
No not using code spaces. Just github actions with xvfb. Unfortunately we are still in process of open sourcing the optimism gateway. I might be able to ask to give you access though. This is the github action I am running The test file we are running is here https://gist.github.com/roninjin10/69ceae736d1f4122c37c8fe9199a6a0c Version is synpress 2.3.2
|
This might be easy for me to see what is happening if you know of a quick easy way to also record the metamask window in my githubaction @drptbl |
@roninjin10 you can do it, but I'm not sure if that's as easy as it should be. You would have to do this through -- Github Actions setup:
-- There is another option.. you can simply try to run everything inside docker container on your localhost, it will also record a video and maybe it will fail for you because it's similar environment to Github Actions. You have to follow steps 1 and 2 from above, but instead of integrating all of this with CI (skip step 3), just run this command on your localhost to run your tests in docker container locally: Now, when your tests run, you can connect to After tests are finished, video from the container with metamask will be saved on your local machine, in your root project folder, at |
I'm still working on this issue, so all informations are welcome 🙏. Thanks for helping me out! |
@drptbl we are also facing this issue as well inside GH actions with I can tell you that the tests we did fail with
also there was a console error that bubbled in the test
I did try to switch I hope that helps |
@rori4 is there any example repo or code where I can reproduce this issue? I'm still missing a full example of working code where I can reproduce this issue. |
@drptbl I will try to re-create the issue in example repo when I have time but idk when I will have that. In the meantime check telegram |
@roninjin10 I have just seen your CI setup from above: I think this is the issue. Display is not properly emulated (or attached) and synpress is having troubles. Could you please try to change your CI setup to an official, recommended way using I have described everything here: Also, have you seen "CI tips & tricks"? cc @rori4 @fionnachan ^ if this is the issue, I will try few things:
Just need a confirmation that this is it. If you want, I can assist you in the setup, just link me (or add me) to your repository with failing e2e tests. Tyvm for your help on debugging this issue 🙏. |
Got it. Based on your advice, I'm going to first really quickly try passing in I have a feeling we will want to use docker even it it works because recording the metamask window is a killer upgrade to our current setup. |
Giving xvfb a larger screen did not fix the issue. My next step was to see if running xvfb locally would produce same result but it turns out it's nearly impossible to run xvfb on a mac and doesn't seem worth it to spin up a linux box just for this test. Trying to set up docker-compose build next. |
@roninjin10 @rori4 @fionnachan Hey, First of all, @rori4 has reported that my previous recommendation of using official Other than that, I have just released Now, if you're still experiencing issues - it will be mostly related to emulated display being not properly configured/attached in your setup. Please use If you're still experiencing any issues related to this thread, please re-open it and let me know. I'm also looking forward to your feedback which is super-helpful in development of synpress. Big thanks 🙏, |
Thanks for making
synpress
!The same test works fine on my local machine (Windows) but failed within Codespaces.
The text was updated successfully, but these errors were encountered: