Skip to content

Commit b245454

Browse files
committed
WhenAdminAddSeries.commentShouldBeStripedFromLeadingAndTrailingSpaces: port to Robot Framework.
Addressed to #530 No functional changes.
1 parent e19185f commit b245454

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

src/test/java/ru/mystamps/web/tests/cases/WhenAdminAddSeries.java

-12
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626

2727
import ru.mystamps.web.tests.page.AddSeriesPage;
2828

29-
import static ru.mystamps.web.tests.fest.PageWithFormAssert.assertThat;
30-
3129
/**
3230
* The main difference between this test and {@link WhenUserAddSeries} is that as admin we have
3331
* additional field for comment.
@@ -64,14 +62,4 @@ public void shouldHaveStandardStructure() {
6462
checkStandardStructure();
6563
}
6664

67-
@Test(groups = "misc", dependsOnGroups = "std")
68-
public void commentShouldBeStripedFromLeadingAndTrailingSpaces() {
69-
page.showComment();
70-
page.fillComment(" example comment ");
71-
72-
page.submit();
73-
74-
assertThat(page).field("comment").hasValue("example comment");
75-
}
76-
7765
}

src/test/robotframework/series/creation/misc.robot

+7
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ Issue year should have options for range from 1840 to the current year
7676
List Should Contain Value ${availableYears} ${currentYear}
7777
Should Be Equal As Integers ${numberOfYears} ${expectedNumberOfYears}
7878

79+
Comment should be stripped from leading and trailing spaces
80+
[Documentation] Verify removing of leading and trailing spaces from a comment
81+
Click Element id=add-comment-link
82+
Input Text id=comment ${SPACE * 2}example comment${SPACE * 2}
83+
Submit Form id=add-series-form
84+
Textarea Value Should Be id=comment example comment
85+
7986
*** Keywords ***
8087
Before Test Suite
8188
[Documentation] Login as admin and go to create series page

0 commit comments

Comments
 (0)