CypressError: Timed out retrying after 20050ms: `cy.click()` failed because this element is detached from the DOM.
`<button class="btn btn-default btn-sm swh-save-origin-again" type="button" onclick="swh.save.fillSaveRequestFormAndScroll('git', 'https://gitlab.inria.fr/solverstack/maphys/maphys/');">...</button>`
Cypress requires elements be attached in the DOM to interact with them.
The previous command that ran was:
> `cy.eq()`
This DOM element likely became detached somewhere between the previous and current command.
Common situations why this happens:
- Your JS framework re-rendered asynchronously
- Your app code reacted to an event firing and removed the element
You typically need to re-query for the element or add 'guards' which delay Cypress from running new commands.
https://on.cypress.io/element-has-detached-from-dom
at $Cy.ensureAttached (http://localhost:5004/__cypress/runner/cypress_runner.js:168765:76)
at runAllChecks (http://localhost:5004/__cypress/runner/cypress_runner.js:154675:12)
at retryActionability (http://localhost:5004/__cypress/runner/cypress_runner.js:154755:16)
at tryCatcher (http://localhost:5004/__cypress/runner/cypress_runner.js:13022:23)
at Function.Promise.attempt.Promise.try (http://localhost:5004/__cypress/runner/cypress_runner.js:10296:29)
at whenStable (http://localhost:5004/__cypress/runner/cypress_runner.js:173835:65)
at http://localhost:5004/__cypress/runner/cypress_runner.js:173290:14
at tryCatcher (http://localhost:5004/__cypress/runner/cypress_runner.js:13022:23)
at Promise._settlePromiseFromHandler (http://localhost:5004/__cypress/runner/cypress_runner.js:10957:31)
at Promise._settlePromise (http://localhost:5004/__cypress/runner/cypress_runner.js:11014:18)
at Promise._settlePromise0 (http://localhost:5004/__cypress/runner/cypress_runner.js:11059:10)
at Promise._settlePromises (http://localhost:5004/__cypress/runner/cypress_runner.js:11139:18)
at Promise._fulfill (http://localhost:5004/__cypress/runner/cypress_runner.js:11083:18)
at http://localhost:5004/__cypress/runner/cypress_runner.js:12697:46
From Your Spec Code:
at Context.eval (http://localhost:5004/__cypress/tests?p=cypress/integration/origin-save.spec.js:527:46)
TEST RESULT
TEST RESULT
- Run At
- Jun 3 2022, 5:04 PM