How can I make a test fail using javascript?
As per documentation this should do:
* if(true) throw 'custom message'
but I'm getting this error:
findAuthDataByUserAndApp.feature:20 - javascript evaluation failed: if(true) throw 'custom message', custom message in <eval> at line number 1 at column number 9
(What I would like to do is conditionally match response code based on __arg in a reusable feature like)
* if(__arg.statusCode != null && responseStatus != __arg.statusCode) throw 'custom message
Thanks