Cypress.currentRetry

Cypress.currentRetry is a number representing the current test retry count.

Syntax

Cypress.currentRetry

Examples

Get current test retry

it('example', () => {
  expect(Cypress.testRetry).to.eq(0)
})

History

VersionChanges
12.3.0Added Cypress.currentRetry