Cypress end-2-end and accessibility tests
- In tests/ you'll find the Cypress end-to-end (e2e) and accessibility (a11y) tests.
- Tests are separate to local and prod ENVs where each loads different menu.
- When running tests, the menus are loaded from fixtures located in /tests/fixtures/.
- For each ENV we test 2 different components:
- enterprise-nav-menu (side-menu).
- enterprise-nav-switcher (top, "Enterprise Menu" dropdown).
- When tests are run, they always test e2e test; running a11y tests is optional (More on that below).
- Errors from accessibility tests are fixed.
- Tests can be run in terminal or with GUI.
Running tests:
run e2e tests with GUI for each ENV
npm run cy:e2e:local
npm run cy:e2e:prod
run e2e and a11y tests with GUI for each ENV
npm run cy:e2e:a11y:local
npm run cy:e2e:a11y:prod
run e2e tests in terminal for each ENV
npm run cy:e2e:local:jenkins
npm run cy:e2e:prod:jenkins
run e2e and a11y tests in terminal for each ENV
npm run cy:e2e:a11y:local:jenkins
npm run cy:e2e:a11y:prod:jenkins
npm run cy:e2e:a11y:local:jenkins:firefox
npm run cy:e2e:a11y:prod:jenkins:firefox