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

Expose current retry via Cypress.currentRetry #25239

Closed
emilyrohrbough opened this issue Dec 20, 2022 · 1 comment
Closed

Expose current retry via Cypress.currentRetry #25239

emilyrohrbough opened this issue Dec 20, 2022 · 1 comment
Labels
good first issue Good for newcomers type: feature New feature that does not currently exist

Comments

@emilyrohrbough
Copy link
Member

emilyrohrbough commented Dec 20, 2022

What would you like?

Update the Cypress API to give users access to the current test retry attempt. This can be pulled from the runnable context stored on state but this can easily be provided to users via a first-class API.

Expected usage:

const currentRetry = Cypress.currentRetry

Why is this needed?

Use-case reported here: #24273

Other

No response

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 3, 2023

Released in 12.3.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v12.3.0, please open a new issue.

@cypress-bot cypress-bot bot removed the stage: needs review The PR code is done & tested, needs review label Jan 3, 2023
@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jan 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

1 participant