You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The assert.dom() type allows for passing undefined as the target parameter:
assert.dom(undefined).exists();
However, doing so results in a TypeError:
TypeError: Unexpected Parameter: undefined
at DOMAssertions.findElement (https://localhost:7357/assets/test-support.js:12711:15)
at DOMAssertions.findTargetElement (https://localhost:7357/assets/test-support.js:12684:21)
at DOMAssertions.hasText (https://localhost:7357/assets/test-support.js:12215:26)
at Object.<anonymous> (https://localhost:7357/assets/tests.js:22408:20)
I'd expect invoking assert.dom in this way to behave the same way as invoking assert.dom() without any parameters.
The text was updated successfully, but these errors were encountered:
The
assert.dom()
type allows for passingundefined
as thetarget
parameter:However, doing so results in a
TypeError
:I'd expect invoking
assert.dom
in this way to behave the same way as invokingassert.dom()
without any parameters.The text was updated successfully, but these errors were encountered: