This PR proposes/adds a new assertion to complement the .displayed assertion, which tests for the CSS property visibility being unequal to hidden or collapse.
I'm not really sure what to say about it other than that. 😂 I've been using chai-dom in a project of mine, and I was just surprised to see that there was no analog of .displayed to test whether elements were hidden using the visibility property. It's a pretty straightforward thing to add, since it follows pretty much the same "format" as .displayed, as far as code is concerned, so I figured I'd add it real quick and submit a PR.
Hello!
This PR proposes/adds a new assertion to complement the
.displayed
assertion, which tests for the CSS propertyvisibility
being unequal tohidden
orcollapse
.I'm not really sure what to say about it other than that. 😂 I've been using
chai-dom
in a project of mine, and I was just surprised to see that there was no analog of.displayed
to test whether elements were hidden using thevisibility
property. It's a pretty straightforward thing to add, since it follows pretty much the same "format" as.displayed
, as far as code is concerned, so I figured I'd add it real quick and submit a PR.Cheers!