Sample project to demonstrate end-to-end (e2e) tests written with Cypress running on GitHub Actions.
To clone and run this project, you will need:
Note: When installing Node.js, npm is automatically installed.
To install the dev dependencies, run npm install
Before running the tests, some environment variables need to be set up.
Make a copy of the cypress.env.example.json
file as cypress.env.json
, and set the appropriate values for all the variables.
Note: The cypress.env.json
file is not tracked by git since it's listed in the .gitignore
file.
In this project, you can run tests in interactive and headless modes
Run npm test
to run all tests in headless mode using a desktop viewport.
Run npm run cy:open
to open the Cypress App to run tests in interactive mode using a desktop viewport.