Skip to content

Commit acc4ef8

Browse files
committed
Fix tests
1 parent 6bbacc3 commit acc4ef8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/test/java/com/epam/reportportal/karate/description/CallWithParametersHookTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class CallWithParametersHookTest {
4747
private static final String PARAMETERS_DESCRIPTION_PATTERN =
4848
"Parameters:\n\n" + MarkdownUtils.TABLE_INDENT + "|\u00A0vara\u00A0|\u00A0result\u00A0|\n" + MarkdownUtils.TABLE_INDENT
4949
+ "|------|--------|\n" + MarkdownUtils.TABLE_INDENT
50-
+ "|\u00A0\u00A02\u00A0\u00A0\u00A0|\u00A0\u00A0\u00A04\u00A0\u00A0\u00A0\u00A0|\n\n"
50+
+ "|\u00A0\u00A02\u00A0\u00A0\u00A0|\u00A0\u00A0\u00A04\u00A0\u00A0\u00A0\u00A0|\n"
5151
+ MarkdownUtils.TABLE_ROW_SEPARATOR;
5252
private final String featureId = CommonUtils.namedId("feature_");
5353
private final String scenarioId = CommonUtils.namedId("scenario_");

src/test/java/com/epam/reportportal/karate/description/ScenarioDescriptionErrorLogWithDescriptionAndExamplesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
public class ScenarioDescriptionErrorLogWithDescriptionAndExamplesTest {
5050

51-
public static final String MARKDOWN_DELIMITER_PATTERN_THREE_ARGS = "%s\n\n---\n\n%s\n\n---\n\n%s";
51+
public static final String MARKDOWN_DELIMITER_PATTERN_THREE_ARGS = "%s\n---\n%s\n---\n%s";
5252
public static final String ERROR = "did not evaluate to 'true': mathResult == 5\nclasspath:feature/simple_failed_description_examples.feature:8";
5353
public static final String ERROR_MESSAGE = "Then assert mathResult == 5\n" + ERROR;
5454
public static final String DESCRIPTION_ERROR_LOG = "Error:\n" + ERROR;

src/test/java/com/epam/reportportal/karate/description/SimpleDescriptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void test_description_for_all_possible_items(boolean report) {
7878
verify(client, times(3)).startTestItem(same(scenarioId), stepCaptor.capture());
7979

8080
StartTestItemRQ featureStart = featureCaptor.getValue();
81-
assertThat(featureStart.getDescription(), endsWith("feature/description.feature\n\n---\n\nThis is my Feature description."));
81+
assertThat(featureStart.getDescription(), endsWith("feature/description.feature\n---\nThis is my Feature description."));
8282

8383
StartTestItemRQ scenarioStart = scenarioCaptor.getValue();
8484
assertThat(scenarioStart.getDescription(), equalTo(SCENARIO_DESCRIPTION));

0 commit comments

Comments
 (0)