-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
qsays/grafana
#1Labels
topic: visibility 👁type: regressionA bug that didn't appear until a specific Cy version releaseA bug that didn't appear until a specific Cy version release
Description
Current behavior:
When an element has width or height 0px with non-none transform and overflow hidden, it is not visible. But isHidden() cannot detect it.
<!-- Example -->
<div style="height: 0px; transform: translate(1, 2)"><p>Visible</p></div>
<div style="height: 0px; transform: translate(1, 2); overflow: hidden"><p>Invisible</p></div>It is found with cypress-example-piechopper in https://circleci.com/gh/cypress-io/cypress-test-example-repos/71863.
Desired behavior:
isHidden() should detect it.
Steps to reproduce: (app code and test code)
- Download https://github.com/cypress-io/cypress-example-piechopper.
- Change cypress to dev version.
- Run app_spec.js
- "displays hamburger menu" fails.
Versions
After #6000 is merged.
Metadata
Metadata
Assignees
Labels
topic: visibility 👁type: regressionA bug that didn't appear until a specific Cy version releaseA bug that didn't appear until a specific Cy version release