Closed
Description
Current behavior
For all other status codes except HTTP_ERROR_CODE = 400 with request is set to failOnStatusCode: false, test is rightfully continued
Desired behavior
HTTP_ERROR_CODE = 400 with request is set to failOnStatusCode: false, test is should be continued
Test code to reproduce
Create a request which will end up in a HTTP_ERROR_CODE = 400
cy.request({
method: 'POST',
url: endpointUrl,
body: requestBody,
failOnStatusCode: false
}).as('postCollectionPredictorJobs');
console.log("test doesn't reach here")
Cypress Version
v14.2.0
Node version
v22.9.0
Operating System
Windows 11
Debug Logs
Other
No response