Skip to content

backface-visibility: hidden doesn't hide elements from cypress #2985

@callumacrae

Description

@callumacrae

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions