It contains 6 happy paths UI tests and 1 error path. It also contains 7 api happy paths.
Install
: Install recent cypress version
There are two spec files in the e2e folder:
api-testing.cy.js
: This spec file contains the scenarios to test the APIsui-testing.cy.js
: This spec file contains the scenarios to test the UI.
In order to execute scripts, simply run:
- Gitbash
npm install
npm run test
npx cypress open (Cypress GUI to run individual spec file)
- Develop many helpers.
- Consider a modular approach.
- Consider page object models to keep common locators.
- Consider Cypress's best practises.