a cypress command to refresh the whole page
cy.visit('http://localhost:3000/admin') cy.get('#undo-btn').click().should('not.be.visible') cy.reload() cy.get('#undo-btn').click().should('not.be.visible')
Source: docs.cypress.io