Closed vhugogarcia closed 1 year ago
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();
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()
scenario.isFailed()
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.