I am testing a web app that renders some of its errors as HTML and gives no other indication that a problem occurred. After every click
, I would like to see if a .error
element exists.
I know I could manually add this after every click, but it's going to obfuscate my test and it will be easy to forget some instances. Is there a way to tell testcafe that a certain condition should make the test fail, even if I'm not explicitly checking for it?
Aucun commentaire:
Enregistrer un commentaire