Skip to content

Commit d8e3284

Browse files
committed
WhenAdminAddSeries.shouldIgnoreDuplicatedCatalogNumbers: port to Robot Framework.
Addressed to #530 No functional changes.
1 parent ea46ba7 commit d8e3284

File tree

2 files changed

+17
-22
lines changed

2 files changed

+17
-22
lines changed

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

-22
Original file line numberDiff line numberDiff line change
@@ -127,28 +127,6 @@ public void commentShouldBeStripedFromLeadingAndTrailingSpaces() {
127127
assertThat(page).field("comment").hasValue("example comment");
128128
}
129129

130-
@Test(groups = "logic", dependsOnGroups = { "std", "misc" })
131-
public void shouldIgnoreDuplicatedCatalogNumbers() {
132-
page.fillCategory(validCategoryName);
133-
page.fillQuantity("2");
134-
page.fillImage(SAMPLE_IMAGE_PATH);
135-
page.showCatalogNumbers();
136-
137-
page.fillMichelNumbers("104,105,104");
138-
page.fillScottNumbers("114,115,114");
139-
page.fillYvertNumbers("124,125,124");
140-
page.fillGibbonsNumbers("134,135,134");
141-
142-
AbstractPage next = page.submit();
143-
assertThat(next).isInstanceOf(InfoSeriesPage.class);
144-
145-
InfoSeriesPage nextPage = (InfoSeriesPage)next;
146-
assertThat(nextPage.getMichelCatalogInfo()).isEqualTo("#104, 105");
147-
assertThat(nextPage.getScottCatalogInfo()).isEqualTo("#114, 115");
148-
assertThat(nextPage.getYvertCatalogInfo()).isEqualTo("#124, 125");
149-
assertThat(nextPage.getGibbonsCatalogInfo()).isEqualTo("#134, 135");
150-
}
151-
152130
@Test(groups = "logic", dependsOnGroups = { "std", "misc" })
153131
public void shouldAllowExistingCatalogNumbers() {
154132
page.fillCategory(validCategoryName);

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

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

20+
Catalog numbers should ignore duplicate values
21+
[Documentation] Verify that fields with catalog numbers ignore duplicate values
22+
Select From List By Label id=category Sport
23+
Input Text id=quantity 2
24+
Choose File id=image ${MAIN_RESOURCE_DIR}${/}test.png
25+
Click Element id=add-catalog-numbers-link
26+
Input Text id=michelNumbers 104,105,104
27+
Input Text id=scottNumbers 114,115,114
28+
Input Text id=yvertNumbers 124,125,124
29+
Input Text id=gibbonsNumbers 134,135,134
30+
Submit Form id=add-series-form
31+
Element Text Should Be id=michel_catalog_info \#104, 105
32+
Element Text Should Be id=scott_catalog_info \#114, 115
33+
Element Text Should Be id=yvert_catalog_info \#124, 125
34+
Element Text Should Be id=gibbons_catalog_info \#134, 135
35+
2036
Issue year should have options for range from 1840 to the current year
2137
[Documentation] Verify that field with year provides all valid values
38+
Go To ${SITE_URL}/series/add
2239
Click Element id=specify-issue-date-link
2340
${availableYears}= Get List Items id=year
2441
${currentYear}= Get Time year NOW

0 commit comments

Comments
 (0)