Thanks to visit codestin.com
Credit goes to github.com

Skip to content

.should("be.visible") doesn't interpet elements with " style='transform: scale(0,0)' " correctly #723

@garrett-thompson

Description

@garrett-thompson

Current behavior:

.should('be.visible') recognizes elements with style="transform: scale(0,0)" as being visible.

Desired behavior:

.should('be.visible') should determine that elements with style="transform: scale(0,0)" are actually not visible

How to reproduce:

  1. create an element on a page that has style="transform: scale(0,0)"
  2. write test that checks that element's visibility like so: cy.get('#el').should('be.visible');

Additional Info (images, stack traces, etc)

screen shot 2017-10-10 at 4 08 01 pm

  • Operating System: Mac OS Sierra
  • Cypress Version: 1.0.1
  • Browser Version: Chrome 61

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