-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 should find Windows browsers in WSL2 #19687
Comments
I tried next command
no luck so far |
I have also tried to create a symlink:
Cypress opens the browser, but later says it is not recognized. |
I wonder what recognized means, but couldn't find in a few mins the code that is responsible for recognition. |
i have same problem, cypress cant open or recognized browser, i try to install in linux browser but not work too |
That link just gives instructions on installing Cypress with WSL, which is required to get Cypress to open. Once you follow these steps then you run into the problem that dantman is describing, which is that only the Electron browser is available. |
in my case the real problem was version node, try to change.. can be resolve |
When you open cypress in WSL, the server load the Linux environment version of this code: cypress/packages/launcher/lib/linux/index.ts Lines 111 to 123 in acc1050
However, when you link or use cypress/packages/launcher/lib/windows/index.ts Lines 170 to 179 in acc1050
|
I wanted to run cypress with chrome, and managed to do so by installing chrome in WSL2 |
@abulhawa The answer i have been trawling for. Thank you. |
I've faced this same issue and after a long research I've identified that my problem is related to webpack build, so I've tried to build(npm run build) and my webpack run out of memory(WSL), I've 32GB of RAM and this still happends, so I just run this export NODE_OPTIONS=--max_old_space_size=8192 and cypress work again, took me some months to discover this as cypress doesn't stop or show errors related to webpack build(just when succeed). Hope I can help you(I've never found that related solution). |
Current behavior
In WSL2 when you follow the installation instructions the resulting Cypress setup only runs the internal Electron browser. Even if it would've found all the browsers the user has installed if you ran it on the Windows host.
Desired behavior
When Cypress is run in WSL should detect all the browsers available in the Windows host. Windows' environment, filesystem, and the ability to run .exe files are all available from within WSL2 so Cypress should be fully capable of running the host Windows' browsers.
Test code to reproduce
n/a
Cypress Version
9.2.1
Other
No response
The text was updated successfully, but these errors were encountered: