Skip to content

This is an example Cypress project running on Codespaces with an ability to run cypress open on X11.

Notifications You must be signed in to change notification settings

emperol2/cypress-codespaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cypress Codespaces Example 👨‍💻

This is an example Cypress project running on Codespaces with an ability to run cypress open on X11.

How to use 🤔

  1. Git clone this project
  2. Open this project on Codespaces
  3. On Codespaces (first time) run time command below to install the dependencies:
npm install
  1. To open the Remote Client on X11, visit below link in your browser and the password is MUST_BE_SOMETHING:
http://127.0.0.1:8080
  1. To open the Cypress UI Test Runner:
npx cypress open

Screenshot 🏞

Screen Shot 2565-01-15 at 23 47 33


Trobleshooting 🔧

If there is the problem with Cypress version below:

No version of Cypress is installed in: /root/.cache/Cypress/9.2.1/Cypress

Please reinstall Cypress by running: cypress install

Run this command to fix it:

npx cypress install --force

Ignore 🙅‍♂️

You can safely ignore the dbus error if your tests are executing fine see mentioned here.

[3555:0115/164125.919187:ERROR:bus.cc(392)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3555:0115/164125.924596:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3555:0115/164125.924639:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")

Thanks 🙏🏼

For your reference:

cypress-io/cypress-documentation#2956 (comment)

https://github.com/AriPerkkio/cypress-codespaces-example

About

This is an example Cypress project running on Codespaces with an ability to run cypress open on X11.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published