-
Notifications
You must be signed in to change notification settings - Fork 380
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
Cypress GUI #29
Comments
Yes but you'll need to install VNC and connect in order to "see" what's going on. It' won't be very fun trying to use the browser and develop there though. :-/ Until Cypress supports launching a remote browser we don't really recommend it. Instead it makes more sense for you to host your server / code in Docker, but just expose that server to the outside world and then use your normally installed browser to connect to it. |
Thank you for fast response! If thats not a problem, I will need a little guidance from you on this one. |
I made some progress, but I still have problems with this setup. What am I missing? |
In addition, in my docker container log I find this:
|
@silentlight the You actually won't be able to get this working I'm afraid. Cypress itself has to launch your browser in a very specific way - with flags and a custom profile else it won't work. Until Cypress has the ability to launch remote browsers not installed directly on the OS this won't work - sorry. What I was suggesting was actually the inverse - don't try to run |
There seems to be some security issues regarding running X inside a docker container, but you can do it with Firefox for instance: https://github.com/splattael/docker-firefox There's also this repo that solves some of the security issues I mentioned, but I haven't tried. |
I have done experiments running VNC from Docker so you can look into the container running Cypress here https://github.com/cypress-io/browser-connect-experiment but this is tricky. |
@bahmutov this link you posted is not working :( also can someone tell me how to run cy.visit() from the stanalone gui app? |
@omaressameldin good catch, repo was private, I just made it public |
@bahmutov thanks :) |
also i ended up doing it this way which is simple just run docker using these options and it works |
I was able to get this working with @omaressameldin. It would be awesome to see a guide for doing this. x11 is pretty annoying to deal with, so it would be awesome to have access to the server that is hosting application (so that the port could be exposed) |
@brian-mann is there a ticket for supporting launching a remote browser and is it on the cypress team's roadmap? If not is there any information that you can provide that may help the community issue a pr and make it happen? |
@walkerrandolphsmith yes I have added one cypress-io/cypress#5985 |
In addition of the answer of @omaressameldin
if you are on chromium you should need to give this extra environment variables to make it work (contrib from @milesrichardson) .
|
inject scripts in a remote browser.. might involve setting up another nodejs sever on the target machine |
Hello,
Is it possible to run Cypress GUI from inside the container?
My development environment is dockerized but I would still love to use your brilliant GUI.
Thanks
The text was updated successfully, but these errors were encountered: