This is a project of integration tests (end-to-end). These tests are developed in JavaScript with Cypress and Cucumber
- Page Object Pattern
- Visual regression tests
- Github Actions
- Report
- node >= 12.18.x - how to install Node
- npm >= 6.14.x - how to install NPM
Install the dependencies:
npm install
Run e2e tests in headless mode (Electron):
npm run cy:run
Send a contact
✓ The system should show a successful message (16103ms)
Visual regression on homepage
✓ The homepage should display visually correct (8634ms)
Searching products
✓ The system should display only products related to the search (4554ms)
3 passing (29s)
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 3 │
│ Passing: 3 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 1 │
│ Video: false │
│ Duration: 29 seconds │
│ Spec Ran: features/all.features │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
Open Cypress and select what test do you want to run and what browser:
npm run cy:open
Run this command to generate the report in the directory ./results/report/index.html
:
npm run cy:report:generate
You can see the report on GitHub Pages