Skip to content
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

cypress thinks clipped elements in overflow-y:hidden elements are visible #563

mo opened this issue Jul 16, 2017 · 3 comments


Copy link

mo commented Jul 16, 2017

Cypress allows .should('be.visible') to pass OK on the following:

<div style="display: block; height: 10px; overflow-y: hidden;">
  <div id="hidden3">hidden3 pass</div>

This page:
...lists "overflow: hidden" but maybe you didn't list the overflow-y property?

Copy link

jennifer-shehane commented Jul 17, 2017

Can confirm, this is still a bug in version 0.20.0. Thanks for opening the issue

Test code as is in version 0.20.0

cy.get('#hidden3').should('be.visible')     // PASSES incorrectly
cy.get('#hidden3').should('') // FAILS incorrectly

Copy link

The code for this is done, but this has yet to be released. We'll update the issue and reference the changelog when it's released.

@jennifer-shehane jennifer-shehane added the stage: pending release There is a closed PR for this issue label Aug 15, 2017
@jennifer-shehane jennifer-shehane removed the stage: pending release There is a closed PR for this issue label Sep 12, 2017
@brian-mann brian-mann added this to the 0.20.0 milestone Sep 14, 2017
Copy link

Fixed in 0.20.0

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

4 participants