Feature Request: Make retryOnStatusCodeFailure and retryOnNetworkFailure globally configurable #4605
Labels
stage: proposal 💡
No work has been done of this issue
type: enhancement
Requested enhancement of existing feature
Current behavior:
The two params
retryOnStatusCodeFailure
andretryOnNetworkFailure
are options passed in viacy.request
andcy.visit
- however, it would be great if these two settings are configurable globally as well as overridable per call.Desired behavior:
Users are able to to configure
retryOnStatusCodeFailure
andretryOnNetworkFailure
in the Cypress config file.Users are able to override the default settings in the Cypress config file via
cy.request
andcy.visit
Steps to reproduce: (app code and test code)
cy.visit(some_url, {retryOnStatusCodeFailure:some_value, retryOnNetworkFailure: some_value}
cy.visit(some_other_url, {retryOnStatusCodeFailure:some_value, retryOnNetworkFailure: some_value}
This would be better if we could configure a default instead of having to pass it in each time.
Versions
Cypress 3.3.1
The text was updated successfully, but these errors were encountered: