Cypress Objectives - kimschles/schlesinger-knowledge GitHub Wiki
Cypress
By the end of this breakout, you will be able to:
- Install and configure cypress tests from scratch
- Write at least 3 cypress assertions
- Stretch: Test user input with cypress actions
Install and configure cypress tests from scratch
- Create a new directory
- Initializing a node project
npm init -y
- Install Cypress
npm install --save-dev cypress
- Create a cypress.json file
- Configure cypress to your liking
- suggestions: baseUrl, integrationFolder, and turned off video recording
- If you want to see the test results in your terminal, change test script to
npx cypress open
npx cypress run