Reactjs – How to redirect inside `each` loop without error?
When user click to $clickableCardEl it redirects to another page it('cards should not to redirect to 404 page', () => { cy.getByCyId('clickable-card').each($clickableCardEl => { cy.wrap($clickableCardEl).click().wait(3000); cy.getByCyId('not-found-content').should('not.exist'); cy.go('back'); }); }); And I get this error cy.click() failed because the page updated…