- Introduction to Cypress
- Writing Your First Test
- Best Practices
- Testing a Real App
- Cypress Plugins
- Digging Deeper
- Create a folder
- Open terminal in folder
- Run
npm init - Run
npm install cypress --save-dev - Run
npx cypress open
Our goals:
- Use the starter spec that visits example.cypress.io
- Find the word "type" on the page
- Click it to visit the
/commands/actionspage. - Get the email input field
- Type
fake@email.comin the field - Validate that the value of the email field is
fake@email.com
Resources:
Goals:
- Visit google.com
- Type
wpscholarin the search box - Submit search
- Validate that a result containing
wpscholar.comexists - Click the result
- Validate that the URL is wpscholar.com
Resources: