To install Cypress and all the dependencies:
- Run 'npm install'
E2E Tests are located in cypress/integration folder and are divided in spec files to match components on the frontend. This is done to improve readability, maintainability and troubleshooting. For visual testing we can use any of the available recommended tools: https://docs.cypress.io/plugins/directory#Visual%20Testing
To execute tests in headless mode run:
- npm run 'cy:run:e2e:desktop:chrome'
- npm run 'cy:run:e2e:desktop:firefox'
We set up gitlab-ci.yml file. Official cypress docker images are used with all dependencies and browsers: https://github.com/cypress-io/cypress-docker-images/tree/master/browsers. Tests are run 3 in parallel on chrome and firefox
All the tests results are recorded with cypress dashboard https://dashboard.cypress.io/ Any other reporters can be also used if needed: https://docs.cypress.io/plugins/directory#Reporting