I have a suite that has more than two test cases. Using Cypress, how can I retry all tests from the beginning of the test suite when one of the tests fails?
I have tried using the option retries from Cypress but it just retries the singular failed test, not all of the tests from the beginning of the suite. Anyone have any idea how to do this? Please help me.
describe('An user with an assigned report', {
retries: {
'runMode': 2,
'openMode': 2
}
}, () => {
before(() => {
const config = Cypress.env()
cy.logout()
cy.login(username, password)
})
after(() => {
cy.logout()
})
it('should be able to add a comment', () => {
cy.openReportWriterRightPanel()
})
it('should be able to add Incident Overview details', () => {
// Click 'Incident Overview' and fill out form.
cy.findByLabelText('currently active entity').click()
})
}