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 @@ -109,20 +109,6 @@ public void categoryNameRuShouldNotEndsWithHyphen() {
109
109
110
110
assertThat (page ).field ("nameRu" ).hasError (tr ("value.hyphen" ));
111
111
}
112
-
113
- @ Test (groups = "invalid" , dependsOnGroups = "std" )
114
- public void categoryNameEnShouldNotContainRepeatedHyphens () {
115
- page .addCategory ("te--st" , TEST_CATEGORY_NAME_RU );
116
-
117
- assertThat (page ).field ("name" ).hasError (tr ("value.repeating_hyphen" ));
118
- }
119
-
120
- @ Test (groups = "invalid" , dependsOnGroups = "std" )
121
- public void categoryNameRuShouldNotContainRepeatedHyphens () {
122
- page .addCategory (TEST_CATEGORY_NAME_EN , "те--ст" );
123
-
124
- assertThat (page ).field ("nameRu" ).hasError (tr ("value.repeating_hyphen" ));
125
- }
126
112
127
113
@ Test (groups = "misc" , dependsOnGroups = "std" )
128
114
public void categoryNameEnShouldBeStripedFromLeadingAndTrailingSpaces () {
Original file line number Diff line number Diff line change @@ -33,6 +33,14 @@ Create category with forbidden characters in name
33
33
Element Text Should Be id=name.errors Category name must consist only latin letters, hyphen or spaces
34
34
Element Text Should Be id=nameRu.errors Category name must consist only Russian letters, hyphen or spaces
35
35
36
+ Create category with repeating hyphens in name
37
+ [Documentation] Verify validation name with repeating hyphens
38
+ Input Text id=name te--st
39
+ Input Text id=nameRu те--ст
40
+ Submit Form id=add-category-form
41
+ Element Text Should Be id=name.errors Value must not contain repetition of hyphen
42
+ Element Text Should Be id=nameRu.errors Value must not contain repetition of hyphen
43
+
36
44
Create category with existing name
37
45
[Documentation] Verify validation of non-unique name
38
46
Input Text id=name Sport
You can’t perform that action at this time.
0 commit comments