Skip to content

Commit 3f4af99

Browse files
committed
WhenAdminAddCategory.categoryNameRuWithAllowedCharactersShouldBeAccepted: port to Robot Framework.
Addressed to #530 No functional changes.
1 parent e01f525 commit 3f4af99

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import ru.mystamps.web.tests.page.AddCategoryPage;
3030

3131
import static ru.mystamps.web.tests.TranslationUtils.tr;
32-
import static ru.mystamps.web.tests.fest.PageWithFormAssert.assertThat;
3332

3433
public class WhenAdminAddCategory extends WhenAnyUserAtAnyPageWithForm<AddCategoryPage> {
3534

@@ -65,13 +64,6 @@ public void shouldHaveStandardStructure() {
6564
checkStandardStructure();
6665
}
6766

68-
@Test(groups = "valid", dependsOnGroups = "std")
69-
public void categoryNameRuWithAllowedCharactersShouldBeAccepted() {
70-
page.addCategory("НевернаяКатегорияНаАнглийском", "Категория Ёё");
71-
72-
assertThat(page).field("nameRu").hasNoError();
73-
}
74-
7567
@Override
7668
protected void checkServerResponseCode() {
7769
// Ignore this check because server always returns 403 for anonymous user and our test suite

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ Category name in English should accept all allowed characters
3030
Submit Form id=add-category-form
3131
Page Should Not Contain Element id=name.errors
3232

33+
Category name in Russian should accept all allowed characters
34+
[Documentation] Verify that various characters in name are allowed
35+
Input Text id=nameRu Категория Ёё
36+
# we also type invalid name in English to stay on this page
37+
Input Text id=name 1
38+
Submit Form id=add-category-form
39+
Page Should Not Contain Element id=nameRu.errors
40+
3341
*** Keywords ***
3442
Before Test Suite
3543
[Documentation] Login as admin and go to create category page

0 commit comments

Comments
 (0)