-
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
Element visibility fixes #1242
Comments
I've made a flowchart of our current implementation for visibility checks. This applies when using Some notes upon review of the diagram on changes we want to make:
Separate out the "loose" checks from "strict" checks for visibility. Today is all "loose" checks -- "strict" checks concerns whether the element is visible within the viewport and the necessity to scroll to an element first. "Loose" visibility checks
"Strict" visibility checks
Questions
|
I'm going to close this issue for tracking - as there are only a couple of remaining issues that should be resolved when opacity: 0 is considered, which there is a PR for. |
There are multiple issues regarding elements being calculated as visible when they are hidden OR elements being calculated as hidden when they are visible. This issue is generally to be used to track the progress made for these fixes.
I think that it is interesting to note that jQuery ditched their visibility calculations in 3.0 and is likely worthwhile looking into why/how they made these decisions.
Issues
Print reasons why Cypress considers an element 'visible' in errors. #677
Elements hidden using clip / clip-path css properties pass as visible #1178
position: fixed
elements having parent withpointer-events: none
mistakenly display as not visible / covered by another elposition: fixed
elements having parent withpointer-events: none
mistakenly display as not visible / covered by another el #6675should('be.visible')
on a visible element - overflow hidden with position absolute outside Cypress fails when useshould('be.visible')
on a visible element - overflow hidden with position absolute outside #4395.should("be.visible")
doesn't interpret elements with " style='transform: scale(0,0)' " correctly .should("be.visible") doesn't interpet elements with " style='transform: scale(0,0)' " correctly #723backface-visibility: hidden
doesn't hide elements from cypress backface-visibility: hidden doesn't hide elements from cypress #2985.type()
says failed element is not visible, but el is visible Ace editor (cloud 9) fails cy.type() with element is covered #1818Not reproducible issues
should('not.be.visible')
fails Element is hidden by parent butshould('not.be.visible')
fails #683Desired behavior:
Versions
Cypress: 3.3.1
┆Issue is synchronized with this Jira Bug by Unito
The text was updated successfully, but these errors were encountered: