cy.click() failed because the page updated while this command was executing
CypressError
Timed out retrying after 60700ms: cy.click()
failed because the page updated while this command was executing. Cypress tried to locate elements based on this query: > cy.get(@btn) We initially found matching element(s), but while waiting for them to become actionable, they disappeared from the page. Common situations why this happens: – Your JS framework re-rendered asynchronously – Your app code reacted to an event firing and removed the element You can typically solve this by breaking up a chain. For example, rewrite: > cy.get('button').click().click()
to > cy.get('button').as('btn').click()
> cy.get('@btn').click()