HomeSoftware Heritage

cypress: Migrate from cy.route API to cy.intercept API

Description

cypress: Migrate from cy.route API to cy.intercept API

cy.route has been deprecated in cypress 6.0 in favor of cy.intercept
and will be removed soon.

So migrate code stubbing network requests to the intercept API.

The only drawback of the intercept API is that currently stubbed responses
can not be overridden but hopefully a simple workaround can be used
(see https://github.com/cypress-io/cypress/issues/9302).

Details

Provenance
anlambertAuthored on Mar 9 2021, 4:56 PM
anlambertPushed on Mar 9 2021, 5:41 PM
Differential Revision
D5222: cypress: Migrate from cy.route API to cy.intercept API
Parents
rDWAPPS63d44b561a3d: CONTRIBUTORS : Add Kumar Shivendu
Branches
Unknown
Tags
Unknown
Build Status
Buildable 19804
Build 30749: test-and-buildJenkins console · Jenkins