Cannot `cypress verify` - Hangs on Smoke Test on WSL2
See original GitHub issueCurrent behavior:
I have just installed version 4.4.0
of cypress and integrated it in to my project. I’m using using WSL Ubuntu and have install the suggested packages in the documentation.
After trying several fixes as well as reverting the version to earlier versions where I’m met with different issues.
After running DEBUG=cypress:* yarn run cypress open
it looks like it’s getting stuck on the smoke test time out
.
cypress:cli disabling Electron sandbox +57ms
cypress:cli running smoke test +1ms
cypress:cli using Cypress executable /home/<user>/.cache/Cypress/4.4.0/Cypress/Cypress +0ms
cypress:cli smoke test command: /home/<user>/.cache/Cypress/4.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=47 +0ms
cypress:cli smoke test timeout 30000 ms +0ms
⠼ Verifying Cypress can run /home/<user>/.cache/Cypress/4.4.0/Cypress
Desired behavior:
It should continue to verify and then open Cypress
If anybody could point me in the right direction that would be much appreciated
Versions
Cypress: 4.4.0 Windows 10 Ubuntu 18.04.4 LTS
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:24 (1 by maintainers)
Top Results From Across the Web
Cannot `cypress verify` - Hangs on Smoke Test on WSL2
Current behavior: I have just installed version 4.4.0 of cypress and integrated it in to my project. I'm using using WSL Ubuntu and...
Read more >Using Graphical User Interfaces like Cypress' in WSL2
Just ran the @Cypress_io kitchen sink tests in their GUI. ... To confirm this worked, print out the variable you just set in...
Read more >cypress-io/cypress - Gitter
Hello. I just installed cypress in an angular project. after running npx cypress open and selecting one of the example tests -- chrome...
Read more >Troubleshooting | Cypress Documentation
If the smoke test fails to execute, check if a shared library is missing (a common problem on Linux machines without all of...
Read more >How to run Cypress on WSL2 - Shouvojit Sarker - Medium
Either way, running a GUI based tool like Cypress could be a pain, so… ... Cypress is a great tool for writing automated...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@timharsch your solution worked for me on WSL2. I had a
DISPLAY
env variable set for VcXsrv, and after runningunset DISPLAY
the verification step completed w/o issues.Same here in WSL2 Ubuntu 20.04 LTS and Cypress 8.0.0
if DISPLAY env variable is set it fails but unsetting the variable by doing so is making it work :
unset DISPLAY