Page MenuHomeSoftware Heritage

[WIP] Bootstrap end to end tests with cypress
ClosedPublic

Authored by anlambert on Jun 7 2019, 6:02 PM.

Details

Summary

Setup an environment to perform end to end tests using the cypress Test Runner.

Before running the tests, Software Heritage web application is executed in the
background using in-memory storages for fetching data contained in a sample archive.

To easily run the tests, two new make targets have been added:

  • test-frontend: Run tests in headless mode (this should be used in a CI environment)
  • test-frontend-ui: Run tests using the cypress GUI

As an example, a couple of tests regarding the highlighting of lines of code have been added.

Related T1768

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

anlambert created this revision.Jun 7 2019, 6:02 PM
anlambert edited the summary of this revision. (Show Details)Jun 7 2019, 6:03 PM
anlambert updated this revision to Diff 5154.Jun 7 2019, 6:36 PM

Update: Remove unused file and resentence some tests description

anlambert updated this revision to Diff 5155.Jun 7 2019, 11:09 PM

Update: Ensure grecaptcha is desactivated for e2e tests

kalpitk updated this revision to Diff 5166.Jun 11 2019, 11:34 AM
  • Add tests
kalpitk updated this revision to Diff 5169.Jun 11 2019, 1:11 PM

revert last commit

vlorentz accepted this revision.Jun 11 2019, 1:19 PM
This revision is now accepted and ready to land.Jun 11 2019, 1:19 PM
This revision was automatically updated to reflect the committed changes.