4.12.0 Regression: Cypress.dom.isVisible change in behaviour #8998
Labels
pkg/driver
This is due to an issue in the packages/driver directory
type: regression
A bug that didn't appear until a specific Cy version release
v4.12.0 🐛
Issue present since 4.12.0
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!
The text was updated successfully, but these errors were encountered: