This simple repo showcases how Cypress can be used to create a positive and negative test while running and E2E test. This demo shows how cypress uses custom commands such that it can be reused.
- Clone the repository:
git clonecommand - Navigate into the cloned repository
- Run
npm cito execute a clean install via thepackage-lock.jsonfrom the terminal in the repository. This ensures all dependencies are installed with the specified versions. Or runnpm iornpm installto execute an installation using thepackage.json
- From inside the repository's terminal, run
npx cypress runto run it headlessly - Use
npx cypress open --e2eto open the test runner and run it with a browser