Skip to content

Commit

Permalink
Simply state that the element is not visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Dec 17, 2019
1 parent c2530ef commit 3f310e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/driver/src/dom/visibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ ${covered}\
}
}

return `Cypress could not determine why this element '${node}' is not visible.`
return `This element '${node}' is not visible.`
}
/* eslint-enable no-cond-assign */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ This element '<div#coveredUpPosFixed>' is not visible because it has CSS propert
})

it('cannot determine why element is not visible', function () {
this.reasonIs(this.$btnOpacity, 'Cypress could not determine why this element \'<button>\' is not visible.')
this.reasonIs(this.$btnOpacity, 'This element \'<button>\' is not visible.')
})
})
})
Expand Down

0 comments on commit 3f310e1

Please sign in to comment.