How to enable retry for an individual test in Cypress?
Hello Joe,
To enable retry for an individual test in Cypress, please refer to below code for details:
// Customize retry attempts for an individual test
describe(‘User sign-up and login’, () => {
// it test block with no custom configuration
it(‘should redirect unauthenticated user to sign-in page’, () => {
// …
})
// it test block with custom configuration
it(
‘allows user to login’,
{
retries: {
runMode: 2,
openMode: 1,
},
},
() => {
// …
}
)
})