Skip to content

Commit

Permalink
Fixed small bug in ifStatementAspect
Browse files Browse the repository at this point in the history
  • Loading branch information
jose.fernandez committed Aug 6, 2021
1 parent 77c2258 commit f39513c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private Boolean validateStatement(String text) {
statement = m.group(1);
}

String result = interpolator.replace("${javascript:" + statement + "}");
String result = interpolator.replace("${script:javascript:" + statement + "}");
return Boolean.parseBoolean(result.toLowerCase());
}
}
6 changes: 3 additions & 3 deletions src/test/resources/features/ifStatement.feature
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@ignore
Feature: Conditional execution

This allows the conditional execution of steps during runtime. All steps enclosed
between this step and if (statement) { } will be executed only if the given
statement returns true, otherwise, the steps will be skipped.
This allows the conditional execution of steps during runtime. All steps enclosed between if (statement) { and }
will be executed only if the given statement returns true, otherwise, the steps will be skipped.
The statement can be any javascript expression that can return a true|false output. You can even
use variables created during the scenario execution.

Expand Down

0 comments on commit f39513c

Please sign in to comment.