adeoweb-cypress-demo
This is a repository of a Cypress testing demo. Based on adeoweb.biz website case study.
What is this talk
We will
- Cypress Setup
-
✍️ Writing your first test -
🏃 Running tests and results inside Cypress Dashboard -
📗 Organizing tests and custom functions -
💡 Tips & Tricks
How do we prioritize?
- Identify the company/website mission - to understand better where to start testing backlog
- Writing User stories based tests
Tips and tricks
- Testing id's:
data-test="element-id"
- Periodical uptime monitoring
- Automated lighthouse/pagespeed testing
- CI/CD Integration
Used Commands
npm install cypress
/yarn add cypress
npx cypress open
/yarn run cypress open
Cypress Lighthouse Testing
To Setup npm i -D cypress @cypress-audit/lighthouse
TODO:
Cypress Dashboard Integration - https://dashboard.cypress.io/ CI/CD Integration - https://docs.cypress.io/guides/guides/integration-and-e2e-testing.html