Skip to content

Commit

Permalink
EPMRPP-75498 || code review fixes - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sidarkevich committed Mar 21, 2022
1 parent 8605e62 commit 1ee99a6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,7 @@ export class Reporter extends WDIOReporter {
let status = customStatus;
if (this.options.cucumberNestedSteps && suiteStats.type === CUCUMBER_TYPE.SCENARIO) {
const isAllStepsPassed = suiteStats.tests.every((test) => test.state === RP_STATUSES.PASSED);
status = customStatus
? customStatus
: isAllStepsPassed
? RP_STATUSES.PASSED
: RP_STATUSES.FAILED;
status = customStatus || (isAllStepsPassed ? RP_STATUSES.PASSED : RP_STATUSES.FAILED);
}
const finishTestItemData = {
...(status && { status }),
Expand Down

0 comments on commit 1ee99a6

Please sign in to comment.