File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed
java/ru/mystamps/web/tests/cases
robotframework/category/creation Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -82,20 +82,6 @@ public void categoryNameRuWithAllowedCharactersShouldBeAccepted() {
82
82
assertThat (page ).field ("nameRu" ).hasNoError ();
83
83
}
84
84
85
- @ Test (groups = "invalid" , dependsOnGroups = "std" )
86
- public void categoryNameEnWithForbiddenCharactersShouldBeRejected () {
87
- page .addCategory ("S0m3+CategoryN_ame" , TEST_CATEGORY_NAME_RU );
88
-
89
- assertThat (page ).field ("name" ).hasError (tr ("category-name-en.invalid" ));
90
- }
91
-
92
- @ Test (groups = "invalid" , dependsOnGroups = "std" )
93
- public void categoryNameRuWithForbiddenCharactersShouldBeRejected () {
94
- page .addCategory (TEST_CATEGORY_NAME_EN , "Категория123" );
95
-
96
- assertThat (page ).field ("nameRu" ).hasError (tr ("category-name-ru.invalid" ));
97
- }
98
-
99
85
@ Test (groups = "invalid" , dependsOnGroups = "std" )
100
86
public void categoryNameEnShouldNotStartsFromHyphen () {
101
87
page .addCategory ("-test" , TEST_CATEGORY_NAME_RU );
Original file line number Diff line number Diff line change @@ -25,6 +25,14 @@ Create category with too long name
25
25
Element Text Should Be id=name.errors Value is greater than allowable maximum of 50 characters
26
26
Element Text Should Be id=nameRu.errors Value is greater than allowable maximum of 50 characters
27
27
28
+ Create category with forbidden characters in name
29
+ [Documentation] Verify validation of invalid name
30
+ Input Text id=name S0m3+CategoryN_ame
31
+ Input Text id=nameRu Категория_1+23
32
+ Submit Form id=add-category-form
33
+ Element Text Should Be id=name.errors Category name must consist only latin letters, hyphen or spaces
34
+ Element Text Should Be id=nameRu.errors Category name must consist only Russian letters, hyphen or spaces
35
+
28
36
Create category with existing name
29
37
[Documentation] Verify validation of non-unique name
30
38
Input Text id=name Sport
You can’t perform that action at this time.
0 commit comments