DEV Community

Discussion on: Using Graphical User Interfaces like Cypress' in WSL2

Collapse
omriyahoo profile image
Omri Ratson

It's working for me (most of the time, not sure why).
Maybe it's got to do with this printed message I get all the time while running the test:

[6162:0820/164832.276509:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Enter fullscreen mode Exit fullscreen mode

I'm new in the project but this is the configuration (the npm script) of running cypress in the package.json that might give a clue about the message printed:

"cy:start": "concurrently -k -s first \"npm:test\" \"wait-on tcp:3000 && cypress open\""
Enter fullscreen mode Exit fullscreen mode
Collapse
drazik profile image
Cyrille Perois

I have the same messages when a run ./node_modules/.bin/cypress open, so I don't think the message it related to the npm script of your project.

I had to run the command like 3 times to see cypress UI opening. But hey it's cool, it kinda work :D

If anybody reading this have a solution to fix the error message and make it work everytime, please share it !!