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

Visibility assertion not working with overflow: hidden #22750

Closed
palcarazm opened this issue Jul 12, 2022 · 5 comments
Closed

Visibility assertion not working with overflow: hidden #22750

palcarazm opened this issue Jul 12, 2022 · 5 comments
Labels
E2E Issue related to end-to-end testing stage: investigating Someone from Cypress is looking into this stale no activity on this issue for a long period topic: visibility 👁 type: bug

Comments

@palcarazm
Copy link

Current behavior

Asertion error when visibility is hidden due to an ancestor overflow: hidden

Desired behavior

Asertion should pass.

Test code to reproduce

<html>
<body>
  <div style="overflow: hidden; position: relative; width: 100px; height: 36px;">
    <div style="position: absolute; width: 200%">
        <label style="position: absolute; height: 36px; display:inline-block; top: 0;bottom: 0;left: 0;right: 50%;background-color: #0d6efd;">Vestibulum</label>
        <label  id="hidden" style="position: absolute; height: 36px; display:inline-block; top: 0; bottom: 0; left: 50%; right: 0; background-color: #6c757d;">Vestibulum</label>
    </div>
  </div>
</body>
</html>
it('is visible', function () {
    cy.visit('index.html')
    cy.get('#hidden').should('not.be.visible')
  })

Cypress Version

10.3.0

Other

No response

@cypress-bot cypress-bot bot added the stage: investigating Someone from Cypress is looking into this label Jul 13, 2022
@chrisbreiding
Copy link
Contributor

chrisbreiding commented Jul 14, 2022

Thanks for reporting this and for the minimal reproduction. I confirmed the issue occurs with the provided code.

@cypress-bot cypress-bot bot added stage: routed to e2e-core and removed stage: investigating Someone from Cypress is looking into this labels Jul 14, 2022
@chrisbreiding chrisbreiding removed their assignment Jul 14, 2022
@mschile mschile added triage and removed triage labels Aug 18, 2022
@nagash77 nagash77 added E2E Issue related to end-to-end testing and removed E2E-core labels Nov 8, 2022
@github-actions
Copy link
Contributor

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@github-actions github-actions bot added the stale no activity on this issue for a long period label May 12, 2023
@palcarazm
Copy link
Author

I confirm the issue is still present

@cypress-app-bot cypress-app-bot removed the stale no activity on this issue for a long period label May 15, 2023
@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label Nov 12, 2023
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2E Issue related to end-to-end testing stage: investigating Someone from Cypress is looking into this stale no activity on this issue for a long period topic: visibility 👁 type: bug
Projects
None yet
Development

No branches or pull requests

5 participants