Current behavior:
cy.contains() is getting an element which isn't actually visible
Desired behavior:
It should fail as the element isn't visible
Steps to reproduce: (app code and test code)
https://codepen.io/desandro/pen/LmWoWe
On this pen, cy.contains('back') will pass even when it is hidden.
Versions
Latest version, chrome