I am working with taiko and gauge right now and have several asserts as e.g.
assert.ok(text("example").exists())
But now I delete some text parts and want to check that the text really is deleted. I tried
assert.equal(text("example").exists(), false)
but that fails.
I suppose that exists()
doesn't return booleans since assert.equal(text("example").exists(), true)
also fails, while the above .ok
is correct.
Is there any function like assert.notOk(text("example").exists())
?
Thanks for your help in advance!