Push test if client gives an error

I am writing e2e tests with angular and protractor. I would like to know when the client script appeared and the error. I would like my test case to fail. How can i do this? I'm not talking about custom exceptions, but exceptions like: "cannot read some_property property from undefined".

+4
source share
1 answer

FYI is the actual issue: https://github.com/angular/protractor/issues/499

This is currently not possible. You can take a look at https://github.com/goodeggs/jasmine-bail-fast or use the mocha option --bail. However, I have no experience with any of them.

+1
source

Source: https://habr.com/ru/post/1525818/


All Articles