Skip to content

cypress: Fix flaky test

CypressError: Timed out retrying: `cy.trigger()` failed because this element:

`<div class="day-content">...</div>`

is being covered by another element:

`<ul class="swh-list-unstyled">...</ul>`

Fix this problem, or use {force: true} to disable error checking.

https://on.cypress.io/element-cannot-be-interacted-with
    at $Cy.ensureDescendents (http://localhost:5004/__cypress/runner/cypress_runner.js:161319:26)
    at ensureDescendents (http://localhost:5004/__cypress/runner/cypress_runner.js:149885:8)
    at ensureDescendentsAndScroll (http://localhost:5004/__cypress/runner/cypress_runner.js:149892:14)
    at ensureElIsNotCovered (http://localhost:5004/__cypress/runner/cypress_runner.js:150026:5)
    at runAllChecks (http://localhost:5004/__cypress/runner/cypress_runner.js:150172:52)
    at retryActionability (http://localhost:5004/__cypress/runner/cypress_runner.js:150195:16)
    at tryCatcher (http://localhost:5004/__cypress/runner/cypress_runner.js:10584:23)
    at Function.Promise.attempt.Promise.try (http://localhost:5004/__cypress/runner/cypress_runner.js:7858:29)
    at tryFn (http://localhost:5004/__cypress/runner/cypress_runner.js:165607:21)
    at whenStable (http://localhost:5004/__cypress/runner/cypress_runner.js:165645:12)
    at http://localhost:5004/__cypress/runner/cypress_runner.js:165140:16
    at tryCatcher (http://localhost:5004/__cypress/runner/cypress_runner.js:10584:23)
    at Promise._settlePromiseFromHandler (http://localhost:5004/__cypress/runner/cypress_runner.js:8519:31)
    at Promise._settlePromise (http://localhost:5004/__cypress/runner/cypress_runner.js:8576:18)
    at Promise._settlePromise0 (http://localhost:5004/__cypress/runner/cypress_runner.js:8621:10)
    at Promise._settlePromises (http://localhost:5004/__cypress/runner/cypress_runner.js:8701:18)
From Your Spec Code:
    at Context.eval (http://localhost:5004/__cypress/tests?p=cypress/integration/origin-visits.spec.js:1190:84)

Migrated from D4813 (view on Phabricator)

Merge request reports