-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
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!