Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After update from 3.7.0 to 3.8.1, Cypress is having troubles finding elements that are visible on the UI #6083

Closed
rickydidaravong opened this issue Jan 2, 2020 · 2 comments

Comments

@rickydidaravong
Copy link

rickydidaravong commented Jan 2, 2020

Current behavior:

Elements (e.g. buttons after page load) that appear visible are showing not visible by Cypress during a cy.get().Prior to update Cypress 3.7.0 clicked on buttons just fine after page load. But a {force: true} does work but would rather verify that the button is visible first before clicking on the element. Clear Cypress cache made no different unless installing back 3.7.0 .

Desired behavior:

After page loads, buttons and all elements should be found with cy.get or cy.find.

Steps to reproduce: (app code and test code)

Issue only started happening after upgrading from 3.7.0 to 3.8.1.

Versions

Cypress 3.8.1

@scottcrowesai
Copy link

Potentially duplicate of #5974

@rickydidaravong TL;DR for that issues is that if the element or one of the parent's of the element includes transform: translate(0, 0); height: 0; in the style the overflow state isn't taken correctly into account for visibility.

@jennifer-shehane
Copy link
Member

This could be a duplicate, but there is zero chance of knowing without a reproducible example given.

Unfortunately we have to close this issue as there is not enough information to reproduce the problem. This does not mean that your issue is not happening - it just means that we do not have a path to move forward.

Please comment in this issue with a reproducible example and we will reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants