Closed
Description
Current behavior
I have a button inside a sticky element in a modal. Behind the modal is a scrollable element which is an ancestor of the modal. Cypress thinks that the button is not visible. I get the following error message:
This element
<button#button>
is not visible because its content is being clipped by one of its parent elements, which has a CSS property of overflow:hidden
,scroll
orauto
Here is the screenshot of the failing test:
Desired behavior
I can see the button. Cypress should recognize that it is visible.
Test code to reproduce
I have a simple example which reproduces this error. You can find it here:
https://github.com/FraKraBa/cypress-test-tiny
Versions
Cypress 6.4.0