Skip to content

Commit e01f525

Browse files
committed
WhenAdminAddCategory.categoryNameEnWithAllowedCharactersShouldBeAccepted: port to Robot Framework.
Addressed to #530 No functional changes.
1 parent 4fe356f commit e01f525

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ public void shouldHaveStandardStructure() {
6565
checkStandardStructure();
6666
}
6767

68-
@Test(groups = "valid", dependsOnGroups = "std")
69-
public void categoryNameEnWithAllowedCharactersShouldBeAccepted() {
70-
page.addCategory("Valid-Name Category", "InvalidRussianCategory");
71-
72-
assertThat(page).field("name").hasNoError();
73-
}
74-
7568
@Test(groups = "valid", dependsOnGroups = "std")
7669
public void categoryNameRuWithAllowedCharactersShouldBeAccepted() {
7770
page.addCategory("НевернаяКатегорияНаАнглийском", "Категория Ёё");

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ Category name should be modified by replacing multiple spaces by one
2222
Textfield Value Should Be id=name t3 st
2323
Textfield Value Should Be id=nameRu т3 ст
2424

25+
Category name in English should accept all allowed characters
26+
[Documentation] Verify that various characters in name are allowed
27+
Input Text id=name Valid-Name Category
28+
# we also type invalid name in Russian to stay on this page
29+
Input Text id=nameRu 1
30+
Submit Form id=add-category-form
31+
Page Should Not Contain Element id=name.errors
32+
2533
*** Keywords ***
2634
Before Test Suite
2735
[Documentation] Login as admin and go to create category page

0 commit comments

Comments
 (0)