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)
To reproduce:
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 thehasNot
shouldn't even come into play. (hasNot
should only invert its own failure and not affect preceding steps in the query)