Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Make retryOnStatusCodeFailure and retryOnNetworkFailure globally configurable #4605

Open
hvuong-sigma opened this issue Jun 28, 2019 · 4 comments
Labels
stage: proposal 💡 No work has been done of this issue type: enhancement Requested enhancement of existing feature

Comments

@hvuong-sigma
Copy link

hvuong-sigma commented Jun 28, 2019

Current behavior:

The two params retryOnStatusCodeFailure and retryOnNetworkFailure are options passed in via cy.request and cy.visit - however, it would be great if these two settings are configurable globally as well as overridable per call.

Desired behavior:

  1. Users are able to to configure retryOnStatusCodeFailure and retryOnNetworkFailure in the Cypress config file.

  2. Users are able to override the default settings in the Cypress config file via cy.request and cy.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

@cypress-bot cypress-bot bot added the stage: proposal 💡 No work has been done of this issue label Jul 1, 2019
@jennifer-shehane jennifer-shehane added the type: enhancement Requested enhancement of existing feature label Jul 1, 2019
@Stephen2
Copy link

Stephen2 commented Jul 8, 2019

This would be great

@wthegamer
Copy link

I would also like to see this feature.

@zweed4u
Copy link

zweed4u commented Dec 10, 2020

echoing sentiment that this would be a great addition!

@s-herbert
Copy link

need this right now. unnecessary retry happening on an expected 404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: proposal 💡 No work has been done of this issue type: enhancement Requested enhancement of existing feature
Projects
None yet
Development

No branches or pull requests

7 participants