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
hasProperty assertion is defined as hasProperty(name: string, value: string | RegExp, message?: string) but properties, unlike attributes, are not limited to just strings.
I’d like to use hasProperty to assert for checked property on checkbox input in typescript with the following assertion:
assert.dom('input').hasProperty('checked',true);
but this results in typescript error.
Asserting for stringified value ("true") is incorrect and results in failed test.
The text was updated successfully, but these errors were encountered:
hasProperty
assertion is defined ashasProperty(name: string, value: string | RegExp, message?: string)
but properties, unlike attributes, are not limited to just strings.I’d like to use
hasProperty
to assert forchecked
property on checkbox input in typescript with the following assertion:but this results in typescript error.
Asserting for stringified value (
"true"
) is incorrect and results in failed test.The text was updated successfully, but these errors were encountered: