This repository contains end-to-end tests for the Impresso web application. We use Cypress as the testing framework. All tests are located in the cypress/e2e directory.
Clone this repository and install the dependencies:
npm installAdd user credentials to the .env file:
- copy the
.env.examplefile to.env - set the
USER_EMAILandUSER_PASSWORDvariables to the email and password of a valid Impresso user.
By default the tests run against the development environment (https://dev.impresso-project.ch/app). To run the tests against a different environment, set the BASE_URL variable in the .env file to the location of the app (e.g. https://impresso-project.ch/app for the production environment).
To open the Cypress test runner, execute the following command:
npm run cypress