From 1b6682380cf22906e6158e9e0d26a13e897162e4 Mon Sep 17 00:00:00 2001 From: Liviu Carausu Date: Sat, 16 Dec 2023 23:08:55 +0100 Subject: [PATCH] take back "isInDataDrivenTest" flag for stepFailed --- .../net/thucydides/core/steps/BaseStepListener.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/serenity-core/src/main/java/net/thucydides/core/steps/BaseStepListener.java b/serenity-core/src/main/java/net/thucydides/core/steps/BaseStepListener.java index 2dc3b2f23..7dd9e0c9a 100644 --- a/serenity-core/src/main/java/net/thucydides/core/steps/BaseStepListener.java +++ b/serenity-core/src/main/java/net/thucydides/core/steps/BaseStepListener.java @@ -924,15 +924,9 @@ public void stepFailed(StepFailure failure, List screen getCurrentTestOutcome().appendTestFailure(failureCause); recordFailureDetails(failure); - // Step marked as done with the appropriate result before - if (isInDataDrivenTest) { - currentStepDone(failureAnalysis.resultFor(failure)); - } - } - if (!isInDataDrivenTest) { - // Step marked as done with the appropriate result before - currentStepDone(failureAnalysis.resultFor(failure)); } + // Step marked as done with the appropriate result before + currentStepDone(failureAnalysis.resultFor(failure)); }