https://github.com/jeffnyman/cypress-playground
Example Project for Teaching Cypress Automation
https://github.com/jeffnyman/cypress-playground
Last synced: 5 months ago
JSON representation
Example Project for Teaching Cypress Automation
- Host: GitHub
- URL: https://github.com/jeffnyman/cypress-playground
- Owner: jeffnyman
- Created: 2021-03-23T21:05:53.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-01T07:22:01.000Z (over 4 years ago)
- Last Synced: 2025-01-18T00:16:45.411Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cypress Playground
This is a sample project I'm putting together that allows for teaching a Cypress course.
The basic setup steps would be the following, once you have a local copy of the repository:
```
npm install
```
If creating your own project, you would do the following:
```
npm init
npm install --save-dev cypress
npx cypress open
```
The above commands are effectively how this project was created.
To open the Cypress tool itself, you can do this:
```
npm run cy:open
```
To run tests that are stored in the Cypress repository, you can do this:
```
npm run cy:run
```
I am using a directory called `e2e` for all example tests so that I can set them apart from the standard ones that Cypress provides as examples.
If you want to run the tests for the `simple_json` area, you can do the following command:
```
npm run simple:json
```