From 9f103e12fba2580e8e5095de85e69347a53cdf06 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Tue, 30 Jan 2024 12:04:23 +0300 Subject: [PATCH] Fix tests --- .../reportportal/jbehave/ReportPortalStoryReporter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/epam/reportportal/jbehave/ReportPortalStoryReporter.java b/src/main/java/com/epam/reportportal/jbehave/ReportPortalStoryReporter.java index 4d9beec..1732cf5 100644 --- a/src/main/java/com/epam/reportportal/jbehave/ReportPortalStoryReporter.java +++ b/src/main/java/com/epam/reportportal/jbehave/ReportPortalStoryReporter.java @@ -497,7 +497,7 @@ protected TestItemTree.TestItemLeaf retrieveLeaf() { break; case SCENARIO: Scenario scenario = (Scenario) entity.get(); - if (scenario.hasExamplesTable() || !scenario.getExamplesTable().getRows().isEmpty()) { + if (scenario.hasExamplesTable() && !scenario.getExamplesTable().getRows().isEmpty()) { // Each Example has its own scenario node, no need to wrap them into suite once again break; } @@ -575,7 +575,7 @@ protected TestItemTree.TestItemLeaf getLeaf() { break; case SCENARIO: Scenario scenario = (Scenario) entity.get(); - if (scenario.hasExamplesTable() || !scenario.getExamplesTable().getRows().isEmpty()) { + if (scenario.hasExamplesTable() && !scenario.getExamplesTable().getRows().isEmpty()) { // Each Example has its own scenario node, no need to wrap them into suite once again continue; } @@ -704,7 +704,7 @@ protected void evaluateAndFinishLastItem() { Entity entity = structure.pollLast(); if (entity != null && ItemType.SCENARIO == entity.type()) { Scenario scenario = (Scenario) entity.get(); - if (scenario.hasExamplesTable() || !scenario.getExamplesTable().getRows().isEmpty()) { + if (scenario.hasExamplesTable() && !scenario.getExamplesTable().getRows().isEmpty()) { // Each Example has its own scenario node, no need to wrap them into suite once again return; }