Skip to content

4.12.0 Regression: Cypress.dom.isVisible change in behaviour #8998

@ElisaDellaC

Description

@ElisaDellaC

We have a scrollable dropdown list and our test wants to verify how many elements are visible when opening the list: to do so we use Cypress.dom.isVisible

Until Cypress version 4.11.0 our test were working as expected: Cypress.dom.isVisible was only detecting as visible the elements of the list that were visible on screen when opening the list and as not visible the ones present in the list but for which you need to scroll down in order to see them displayed on screen.

As from Cypress version 4.12.0, when opening the dropdown list all elements in the list are detected as visible.

If this is a wanted change in behaviour, could you please advise on a workaround to have our test working?

Here a reproduction scenario:
https://github.com/rosahealth/cypress-tiny-test-fork

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg/driverThis is due to an issue in the packages/driver directorytype: regressionA bug that didn't appear until a specific Cy version releasev4.12.0 🐛Issue present since 4.12.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions