Skip to content

Commit b3178ff

Browse files
committed
WhenAdminAddCategory.categoryShouldBeAvailableForChoosingAtPageWithSeries: port to Robot Framework.
Addressed to #530 No functional changes.
1 parent c6401ac commit b3178ff

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
import static org.fest.assertions.api.Assertions.assertThat;
3030

3131
import ru.mystamps.web.Url;
32-
import ru.mystamps.web.tests.WebDriverFactory;
3332
import ru.mystamps.web.tests.page.AddCategoryPage;
34-
import ru.mystamps.web.tests.page.AddSeriesPage;
3533

3634
import static ru.mystamps.web.tests.TranslationUtils.tr;
3735
import static ru.mystamps.web.tests.fest.PageWithFormAssert.assertThat;
@@ -227,15 +225,6 @@ public void categoryNameRuShouldReplaceRepeatedSpacesByOne() {
227225
assertThat(page).field("nameRu").hasValue("т3 ст");
228226
}
229227

230-
@Test(groups = "logic", dependsOnGroups = { "std", "invalid", "valid", "misc" })
231-
public void categoryShouldBeAvailableForChoosingAtPageWithSeries() {
232-
page.open(Url.ADD_SERIES_PAGE);
233-
234-
AddSeriesPage seriesPage = new AddSeriesPage(WebDriverFactory.getDriver());
235-
236-
assertThat(seriesPage.getCategoryFieldValues()).contains(TEST_CATEGORY_NAME_EN);
237-
}
238-
239228
@Override
240229
protected void checkServerResponseCode() {
241230
// Ignore this check because server always returns 403 for anonymous user and our test suite

src/test/robotframework/category/creation/logic.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*** Settings ***
22
Documentation Verify category creation scenarios
3+
Library Collections
34
Library Selenium2Library
45
Suite Setup Before Test Suite
56
Suite Teardown After Test Suite
@@ -8,11 +9,14 @@ Force Tags Category
89

910
*** Test Cases ***
1011
Create category with name in English
11-
[Documentation] Verify creation of category by filling only mandatory fields
12-
Input Text id=name Cars
13-
Submit Form id=add-category-form
14-
Location Should Be ${SITE_URL}/category/cars
15-
Element Text Should Be id=page-header Cars
12+
[Documentation] Verify creation of category by filling only mandatory fields
13+
Input Text id=name Cars
14+
Submit Form id=add-category-form
15+
Location Should Be ${SITE_URL}/category/cars
16+
Element Text Should Be id=page-header Cars
17+
Go To ${SITE_URL}/series/add
18+
${availableCategories}= Get List Items id=category
19+
List Should Contain Value ${availableCategories} Cars
1620
# TODO: verify that after changing language, header will be in English
1721

1822
Create category with name in English and Russian

0 commit comments

Comments
 (0)