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

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

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

Comments

@mo
Copy link

@mo 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 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

@chrisbreiding chrisbreiding commented Jul 19, 2017

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.

@brian-mann
Copy link
Member

@brian-mann brian-mann commented Sep 14, 2017

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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.