john-doherty/selenium-cucumber-js

AfterScenario detect if scenario failed or no

vhugogarcia opened this issue · 1 comments

Hello friends,

anybody knows how to detect on the hook AfterScenario if it failed or no?

I tried already with: IsFailed
if (!scenario.isFailed) { driver.call(setScore, null, 'pass').then(function(result){ console.log('set score to pass'); }); } done();

I had no cluck with that.

Any idea is always welcome.

I believe it should be scenario.isFailed()