Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Jan 30, 2024
1 parent 0beaae0 commit 9f103e1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 9f103e1

Please sign in to comment.