HomeSoftware Heritage

cypress: Mock costly HTTP request to /coverage endpoint

Description

cypress: Mock costly HTTP request to /coverage endpoint

Before each test suite, cypress visits the root page to get some
references on javascript objects used in tests.

However the root page requests the costly /coverage endpoint to
render the archive coverage widget.

We do not need that widget to render for cypress tests so better
mocking that request to an empty one to speedup each test suite
startup.

Details

Provenance
anlambertAuthored on Mar 16 2022, 3:44 PM
anlambertPushed on Mar 16 2022, 3:48 PM
Parents
rDWAPPS4dd2c8ff9d90: webpack-dev-server: Do not reload page when database file is modified
Branches
Unknown
Tags
Unknown
Build Status
Buildable 27496
Build 43026: test-and-buildJenkins console · Jenkins