Skip to content

cy.request clarify on status code failures, enable 3xx to be successful #323

@brian-mann

Description

@brian-mann

Currently the failOnStatus property can be passed to cy.request to turn off failing based on a non 2xx status code.

This needs to be upgraded to also not fail on 3xx status code, and we should rename this property to be failOnStatusCode to clarify what this property does.

We'll keep the old property name backwards compatible for now and log a deprecation warning.

Metadata

Metadata

Assignees

Labels

type: enhancementRequested enhancement of existing feature

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions