Child is visible with Parent max-height: 0 and overflow: clip #23852
Labels
E2E
Issue related to end-to-end testing
topic: visibility 👁
Triaged
Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.
Current behavior
If the parent has max-height: 0 and overflow: hidden/clip cypress interprets the child as visible.
Desired behavior
As the Element is hidden and never can be visible to the user the check '.should('not.be.visible')' should be truthy
Test code to reproduce
cy.get('[data-cy="not-visible"]').should('not.be.visible');
Cypress Version
10.8.0
Node version
16.15.1
Operating System
Windows 10
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: