Skip to content

C2DH/journal-digital-history-frontend-e2e

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

End-to-end tests for the Journal of Digital History

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.

Running the tests

Clone this repository and install the dependencies:

yarn install

By 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).

Cypress test runner in terminal

/!\ 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

Cypress test UI in browser

/!\ 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:open

Then 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.

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors