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

Parent width should not signal element hidden when it's visible #29687

Open
senpl opened this issue Jun 17, 2024 · 0 comments · May be fixed by #29688
Open

Parent width should not signal element hidden when it's visible #29687

senpl opened this issue Jun 17, 2024 · 0 comments · May be fixed by #29688

Comments

@senpl
Copy link

senpl commented Jun 17, 2024

Current behavior

Parent element width: 0 on element visible in browser will be detected as hidden in Cypress. This is not correct.

Desired behavior

This check should not be done on parent when not needed. Only on element.
Element visible in browser should be clickable and not marked as hidden when they visible

Test code to reproduce

<div id="id2">
  <div style="width: 0">
    <p class="big">IN SECTION 2 </p>
  </div>
</div>
expect(cy.$$('#id2 >div > p')).to.be.visible
    
cy.get('#id2 >div > p').click()

Cypress Version

13.11.0

Node version

v22.3.0

Operating System

Windows 11

Debug Logs

No response

Other

I already work on fix and PR.

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

Successfully merging a pull request may close this issue.

2 participants