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

Closed
mo opened this issue Jul 16, 2017 · 3 comments
Closed
Assignees
Milestone

Comments

@mo
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;">
  <br>
  <br>
  <div id="hidden3">hidden3 pass</div>
</div>

This page:
https://docs.cypress.io/guides/core-concepts/interacting-with-elements.html#Visibility
...lists "overflow: hidden" but maybe you didn't list the overflow-y property?

@jennifer-shehane
Copy link
Member

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('not.be.visible') // FAILS incorrectly

@chrisbreiding
Copy link
Contributor

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
@brian-mann
Copy link
Member

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.
Projects
None yet
Development

No branches or pull requests

4 participants