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
Branch
js-tests-cypress
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 6113
Build 8422: tox-on-jenkinsJenkins
Build 8421: arc lint + arc unit

Event Timeline

Update: Remove unused file and resentence some tests description

Update: Ensure grecaptcha is desactivated for e2e tests

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.