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 allows .should('be.visible') to pass OK on the following:
.should('be.visible')
<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?
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
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.
Fixed in 0.20.0
0.20.0
chrisbreiding
No branches or pull requests
Cypress allows
.should('be.visible')
to pass OK on the following: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?
The text was updated successfully, but these errors were encountered: