This repository contains end-to-end tests for the Journal of Digital History(https://journalofdigitalhistory.org/en). We use Cypress as the testing framework. All tests are located in the cypress/e2e directory.
Clone this repository and install the dependencies:
yarn installBy default the tests run against the development environment . 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://localhost:5173 for the development environment).
/!\ If you want to run the test, do not forget to run the front-end first on localhost 5173.
To open the Cypress test runner, execute the following command:
yarn run cy:run/!\ If you want to run the test, do not forget to run the front-end first on localhost 5173.
To open Cypress test UI:
yarn run cy:openThen choose E2E testing, then Chrome browser ideally and click on Start E2E testing in Chrome button.
Then select the test you want to run in the user interface in Chrome.