Skip to content

Commit

Permalink
Merge 85a47fa into ab5ce21
Browse files Browse the repository at this point in the history
  • Loading branch information
uarlouski committed Jun 22, 2018
2 parents ab5ce21 + 85a47fa commit 1d43789
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,17 @@ public void successful(String step) {

private void prepareNextStep() {
TestState testState = this.testState.get();
if (testState.currentStep != null && testState.currentStep.isTest()) {
testCounter.incrementAndGet();
if (testState.currentStep != null) {
if (testState.currentStep.isTest()) {
testCounter.incrementAndGet();
}
// Lifecycle After story steps
if(testState.currentStep == testState.currentScenario) {
testState.moveToNextScenario();
return;
}
}
// Lifecycle After story steps
if (testState.currentStep == testState.currentScenario) {
testState.moveToNextScenario();
} else if (testState.stepDescriptions != null) {
if (testState.stepDescriptions != null) {
testState.moveToNextStep();
}
}
Expand Down

0 comments on commit 1d43789

Please sign in to comment.