Element is hidden by parent but should('not.be.visible')
fails
#683
Labels
pkg/driver
This is due to an issue in the packages/driver directory
topic: visibility 👁
type: unexpected behavior
User expected result, but got another
All versions of Cypress
I created the test (skipped for now) in https://github.com/bahmutov/element-e2e-tests/blob/201dba8758e70fd9fa9b6c5e0669237889c574f4/cypress/integration/steps-spec.js#L60-L65
The element
.highlight code
is inside parent.meta
div. I expect the element.highlight code
to NOT be visible, by Cypress thinks it is.The DOM (note parent
.meta
div)The problem is that
.meta
div has a border of 1 pixel, which is visible. Thus, our visibility algorithm thinks the.highlight code
inside is visible too. This is incorrect - only the parent's border is visible, the children inside cannot be seen: the border pushes them out, and there isoverflow: hidden
The text was updated successfully, but these errors were encountered: