Page MenuHomeSoftware Heritage

cypress: Fix flaky test
ClosedPublic

Authored by anlambert on Wed, Jan 6, 12:29 PM.

Details

Summary
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)

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D4813 (id=17050)

Rebasing onto 6499c518d0...

Current branch diff-target is up to date.
Changes applied before test
commit be64d903f7229b9c1ac96d5d64ea89e49205a89e
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Wed Jan 6 12:28:46 2021 +0100

    cypress: Fix flaky test

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/542/ for more details.

ardumont added a subscriber: ardumont.

i guess ok is fine here, after all, we are following their suggestion ;)

This revision is now accepted and ready to land.Wed, Jan 6, 12:46 PM
This revision was automatically updated to reflect the committed changes.