You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a repo with the failing Cypress test that demonstrates the issue here: overflow-visibility-issue
To summarize, I wanted to write a test to ensure that an element was visible in my app. My element was currently hidden, yet the test kept passing saying it was visible. The element was position: absolute with top: -100px and left: -100px so that it sat outside of it's container, and the container was overflow: hidden to not allow it to be seen.
cy.get('.element').should('be.visible')// this incorrectly passescy.get('.element').click()//this correctly fails because the element is not visible.