Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
Cypress overscroll bug workarond (#275)
Browse files Browse the repository at this point in the history
Cypress overscroll bug workarond
  • Loading branch information
metas-ts committed Aug 6, 2019
2 parents b167148 + ba3fb0c commit f62ded7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cypress/support/index.js
Expand Up @@ -42,3 +42,10 @@ before(function() {
whitelist: ['SESSION', 'isLogged'],
});
});

Cypress.on('scrolled', $el => {
$el.get(0).scrollIntoView({
block: 'center',
inline: 'center',
});
});

0 comments on commit f62ded7

Please sign in to comment.