Skip to content

Commit e19185f

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

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

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

-17
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,6 @@ public void shouldHaveStandardStructure() {
6464
checkStandardStructure();
6565
}
6666

67-
@Test(groups = "misc", dependsOnGroups = "std")
68-
public void catalogNumbersShouldBeStripedFromSpaces() {
69-
page.showCatalogNumbers();
70-
71-
page.fillMichelNumbers(" 1 , 2 ");
72-
page.fillScottNumbers(" 3 , 4 ");
73-
page.fillYvertNumbers(" 5 , 6 ");
74-
page.fillGibbonsNumbers(" 7 , 8 ");
75-
76-
page.submit();
77-
78-
assertThat(page).field("michelNumbers").hasValue("1,2");
79-
assertThat(page).field("scottNumbers").hasValue("3,4");
80-
assertThat(page).field("yvertNumbers").hasValue("5,6");
81-
assertThat(page).field("gibbonsNumbers").hasValue("7,8");
82-
}
83-
8467
@Test(groups = "misc", dependsOnGroups = "std")
8568
public void commentShouldBeStripedFromLeadingAndTrailingSpaces() {
8669
page.showComment();

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

+13
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ Catalog numbers should accept valid values
1717
71, 81, 91
1818
1000
1919

20+
Catalog numbers should be stripped from leading and trailing spaces
21+
[Documentation] Verify removing of leading and trailing spaces from catalog numbers
22+
Click Element id=add-catalog-numbers-link
23+
Input Text id=michelNumbers ${SPACE * 2}1 , 2${SPACE * 2}
24+
Input Text id=scottNumbers ${SPACE * 2}3 , 4${SPACE * 2}
25+
Input Text id=yvertNumbers ${SPACE * 2}5 , 6${SPACE * 2}
26+
Input Text id=gibbonsNumbers ${SPACE * 2}7 , 8${SPACE * 2}
27+
Submit Form id=add-series-form
28+
Textfield Value Should Be id=michelNumbers 1,2
29+
Textfield Value Should Be id=scottNumbers 3,4
30+
Textfield Value Should Be id=yvertNumbers 5,6
31+
Textfield Value Should Be id=gibbonsNumbers 7,8
32+
2033
Catalog numbers should ignore duplicate values
2134
[Documentation] Verify that fields with catalog numbers ignore duplicate values
2235
Select From List By Label id=category Sport

0 commit comments

Comments
 (0)