-
Couldn't load subscription status.
- Fork 3.4k
Closed
Labels
type: breaking changeRequires a new major release versionRequires a new major release version
Description
Current behavior:
Currently whitelist option for cy.server() actually works as blacklist due to this line
https://github.com/cypress-io/cypress/blob/master/packages/driver/src/cypress/server.coffee#L236
In other words:
cy.server({ whitelist: () => true })will ignore any request
and
cy.server({ whitelist: () => false})will catch all requests
Desired behavior:
Exactly opposite
cy.server({ whitelist: () => true })should catch all requests
and
cy.server({ whitelist: () => false})should ignore any request
Test code to reproduce
cy.server()
cy.route(<any route>)Versions
4.1.0, also reproducible in master
win10, chrome
AnderssonChristian and Naren-Hub
Metadata
Metadata
Assignees
Labels
type: breaking changeRequires a new major release versionRequires a new major release version