Using `hasNot` with `find` passes when it should fail
Opened this issue · 1 comments
avh4 commented
To reproduce:
Query.find [ tag "does-not-exist" ]
>> Query.hasNot [ text "ALSO DOES NOT EXIST" ]
Actual result: it passes (because hasNot
turns the find's failure into a success)
Expected result: it should fail because there is no <does-not-exist>
tag in the HTML, and the hasNot
shouldn't even come into play. (hasNot
should only invert its own failure and not affect preceding steps in the query)
harrysarson commented
Eeek