Skip to content

Commit

Permalink
hide reason update message update
Browse files Browse the repository at this point in the history
  • Loading branch information
senpl committed Jul 1, 2024
1 parent 3ace4ba commit 1988b2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/driver/cypress/e2e/dom/visibility.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ describe('src/cypress/dom/visibility', () => {
})

it('has a parent with an effective zero width and overflow: hidden', function () {
this.reasonIs(this.$parentNoHeight.find('span'), 'This element `<span>` is not visible because its parent `<div>` has CSS property: `overflow: hidden` and an effective width and height of: `100 x 0` pixels.')
this.reasonIs(this.$parentNoHeight.find('span'), 'This element `<span>` is not visible because its parent `<div>` has CSS property: `overflow: hidden` or `overflow: clip` and an effective width and height of: `100 x 0` pixels.')
})

it('element sits outside boundaries of parent with overflow clipping', function () {
Expand Down
2 changes: 1 addition & 1 deletion packages/driver/src/dom/visibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ export const getReasonIsHidden = function ($el, options = { checkOpacity: true }
width = elOffsetWidth($parent)
height = elOffsetHeight($parent)

return `This element \`${node}\` is not visible because its parent \`${parentNode}\` has CSS property: \`overflow: hidden\` and an effective width and height of: \`${width} x ${height}\` pixels.`
return `This element \`${node}\` is not visible because its parent \`${parentNode}\` has CSS property: \`overflow: hidden\` or \`overflow: clip\` and an effective width and height of: \`${width} x ${height}\` pixels.`
}

// nested else --___________--
Expand Down

0 comments on commit 1988b2c

Please sign in to comment.