HomeSoftware Heritage

cypress: Add missing global intercept for https://status.swh.org

Description

cypress: Add missing global intercept for https://status.swh.org

Each time a swh-web HTML page is loaded, an HTTP request is sent to
https://status.softwareheritage.org for getting the data needed to
display the status widget in the top right of the Web UI.

That request was not globally intercepted by cypress resulting in
making real HTTP requests on the internet while executing tests.
As a consequence, this was slowing down the whole testing process.

So ensure that request is globally intercepted to speedup tests
execution.

Details

Provenance
anlambertAuthored on Mar 15 2022, 5:07 PM
anlambertPushed on Mar 16 2022, 11:02 AM
Differential Revision
D7353: cypress: Add missing global intercept for https://status.swh.org
Parents
rDWAPPS5bc77709cb3c: package.json: Upgrade dependencies
Branches
Unknown
Tags
Unknown
Build Status
Buildable 27466
Build 42979: test-and-buildJenkins console · Jenkins