Skip to content

Commit

Permalink
fix(test): "CypressError: Timed out retrying: cy.scrollTo() failed …
Browse files Browse the repository at this point in the history
…because this element is not scrollable"

cf https://github.com/openwhyd/openwhyd/runs/1466986321#step:12:40
  • Loading branch information
adrienjoly committed Nov 28, 2020
1 parent 614b0b0 commit 9f1e449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/integration/acceptance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ context('Openwhyd', () => {
cy.visit('/');

// should display a pop-in dialog when clicking the "Add to" button of that track
cy.scrollTo('bottom');
cy.scrollTo('bottom', { ensureScrollable: false });
cy.get('.post')
.last() // because Cypress is scrolling down for some reason, making the first one unreachable. see https://github.com/cypress-io/cypress/issues/2353
.contains('Add to')
Expand Down

0 comments on commit 9f1e449

Please sign in to comment.