-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.scrollTo fails if overflow set to overlay
#991
Comments
need to solve can't click element when use
|
Experiencing the same issue with cypress 4.3.0. The element is obviously scrollable, it seems only the check performed by cypress has to be adjusted here? |
Reproducible example:
<html>
<body>
<div id="scrollable" style="overflow-y: overlay; height: 2000px; background-color: red;"></div>
</body>
</html> it('test', () => {
cy.visit('index.html')
cy.get('#scrollable').scrollTo('bottom')
}) WhyThe The I think this is precisely because of how it's implemented:
Even if it did pass this check, it wouldn't pass the next check, which is that we make sure the This will be pretty low priority for us to implement a fix for since this |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This is still an issue in the latest version - these days Overlay is very well supported by browsers as well, no reason Cypress shouldnt. |
Current behavior:
If a container has
overflow-y: overlay
, then calling.scrollTo("bottom")
fails on:I'm aware that
overlay
value is non-standard, but I feel like it shouldn't cause issues with cypress.Either way, putting it here for reference for other people.
workaround:
The text was updated successfully, but these errors were encountered: