Page MenuHomeSoftware Heritage

Jenkins > should show a token when requested::Tests / Cypress tests / Run cypress tests / Test API tokens UI should show a token when requested
Failed

TEST RESULT

Run At
Oct 22 2020, 7:41 PM
Details
CypressError: Timed out retrying: `cy.click()` failed because this element is detached from the DOM. `<button class="btn btn-default" onclick="swh.auth.applyTokenAction('display', 1)">Display...</button>` Cypress requires elements be attached in the DOM to interact with them. The previous command that ran was: > `cy.contains()` 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:161039:24) at runAllChecks (http://localhost:5004/__cypress/runner/cypress_runner.js:150012:12) at retryActionability (http://localhost:5004/__cypress/runner/cypress_runner.js:150071:16) at tryCatcher (http://localhost:5004/__cypress/runner/cypress_runner.js:10325:23) at Function.Promise.attempt.Promise.try (http://localhost:5004/__cypress/runner/cypress_runner.js:7599:29) at tryFn (http://localhost:5004/__cypress/runner/cypress_runner.js:165189:21) at whenStable (http://localhost:5004/__cypress/runner/cypress_runner.js:165227:12) at http://localhost:5004/__cypress/runner/cypress_runner.js:164742:16 at tryCatcher (http://localhost:5004/__cypress/runner/cypress_runner.js:10325:23) at Promise._settlePromiseFromHandler (http://localhost:5004/__cypress/runner/cypress_runner.js:8260:31) at Promise._settlePromise (http://localhost:5004/__cypress/runner/cypress_runner.js:8317:18) at Promise._settlePromise0 (http://localhost:5004/__cypress/runner/cypress_runner.js:8362:10) at Promise._settlePromises (http://localhost:5004/__cypress/runner/cypress_runner.js:8442:18) at Promise._fulfill (http://localhost:5004/__cypress/runner/cypress_runner.js:8386:18) at http://localhost:5004/__cypress/runner/cypress_runner.js:10000:46 From Your Spec Code: at displayToken (http://localhost:5004/__cypress/tests?p=cypress/integration/api-tokens.spec.js:184:34) at Context.eval (http://localhost:5004/__cypress/tests?p=cypress/integration/api-tokens.spec.js:204:5)