Testing automation using Cypress
Test | Purpose |
---|---|
site/status.cy.js | Site is Ok. |
auth/validations.cy.js | The login perform shows the proper error messages. |
auth/login.cy.js | The login form works properly. |
dashboard/modal.cy.js | The dashboard sidebar works successfully. |
Set environment variables:
export CYPRESS_BASE_URL='http://localhost:3000'
export CYPRESS_USERNAME='lorem-ipsum'
export CYPRESS_PASSWORD='lorem-ipsum'
Open Cypress console:
npx cypress open --e2e --browser chrome
Run Cypress in headless mode:
npx cypress run --browser chrome