expose current retry attempt with test / hook to programatically handle retries #8404
Labels
existing workaround
stage: ready for work
The issue is reproducible and in scope
type: enhancement
Requested enhancement of existing feature
Current behavior:
Prior to v5.0.0 and using
cypress-retries-plugin
the retry attempt could be programmatically obtained throughCypress.currentTest.currentRetry()
Have tried using Mocha's
this.test._currentRetry
but this is only usable within the tests (.it) and not the hooks where much of our test setup resides.Interestingly keeping the plugin installed as a dependency seems to be working, although not sure what other consequences this might cause.
Desired behavior:
The same feature being made available natively through Cypress. Would be great to be made available on the Cypress global as before.
Test code to reproduce
Previous usage documented here.
Versions
Cypress v5.0.0
The text was updated successfully, but these errors were encountered: