Skip to content

Commit 4a02367

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

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@
2828

2929
import static org.fest.assertions.api.Assertions.assertThat;
3030

31-
import ru.mystamps.web.Url;
32-
import ru.mystamps.web.tests.WebDriverFactory;
3331
import ru.mystamps.web.tests.page.AddCategoryPage;
34-
import ru.mystamps.web.tests.page.AddSeriesPage;
3532

3633
import static ru.mystamps.web.tests.TranslationUtils.tr;
3734
import static ru.mystamps.web.tests.fest.PageWithFormAssert.assertThat;
@@ -227,15 +224,6 @@ public void categoryNameRuShouldReplaceRepeatedSpacesByOne() {
227224
assertThat(page).field("nameRu").hasValue("т3 ст");
228225
}
229226

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-
239227
@Override
240228
protected void checkServerResponseCode() {
241229
// 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)