yarn install
- run all the tests from the terminal:
cypress run - run a specific spec file:
cypress run --spec "cypress/e2e/3-widget/find.cy.js" - or open cypress dashboard to run them one by one and debug:
cypress open
By default, tests are running on stage (thanks to baseUrl set in cypress.config.js).
To run the tests in your local environment:
CYPRESS_BASE_URL=http://localhost:4200 cypress opendocker build -t e2e .
When promoting to prod any changes that had impact on the e2e test, the e2e-on-prod branch must be rebased on main.