-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Description
Undefined elements passed in as a target default to the root element, whilst null works as expected and does not; such that:
assert.dom(null).exists(); // False, "Element <not found> exists"
assert.dom(undefined).exists(); // True, "Element div#root-element exists"
For our usage, we might have an assertion like this:
assert.dom(findAll('.foo')[0]).exists()
Which will currently always return true, even if .foo does not exist (findAll returns [])
This has been raised previously and resolved for null and undefined, see #724, #736
However it looks like it regressed in #2107 for undefined
amk221 and gerryster
Metadata
Metadata
Assignees
Labels
No labels