How to enable retry for an Test Suite(s) in Cypress?

How to enable retry for an Test Suite(s) in Cypress?

Hello Joe,

Use the below code snippet:

// Customizing retry attempts for a suite of tests describe(‘User bank accounts’, { retries: { runMode: 2, openMode: 1, } }, () => { // The per-suite configuration is applied to each test // If a test fails, it will be retried it(‘allows a user to view their transactions’, () => { // … }

it(‘allows a user to edit their transactions’, () => { // … } })