I am currently writing tests protractor and I was wondering if there is some possibility to cancel test execution as soon as something in the beforeEach fails (and return some u
with jasmine2 we can set throwOnExpectationFailure to true.
throwOnExpectationFailure
true
For example in protractor config:
//protractor.conf.js exports.config = { //... onPrepare: () => { jasmine.getEnv().throwOnExpectationFailure(true); } };