skip to Main Content

Actions before Retry on Cypress – Jquery

I'm writing a test on Cypress and I want to clear the field values before retries. How should I do it? it('Fill info', { retries: 3 },function () { cy .get('#name') .type('Test') cy.intercept('POST', '**/api/**/Find') .as('memberresponse') cy .get('.btn') .click() cy.wait('@memberresponse').then(xhr =>…

VIEW QUESTION
Back To Top
Search