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 categoryNameEnShouldNotStartsFromHyphen () {
87
- page .addCategory ("-test" , TEST_CATEGORY_NAME_RU );
88
-
89
- assertThat (page ).field ("name" ).hasError (tr ("value.hyphen" ));
90
- }
91
-
92
- @ Test (groups = "invalid" , dependsOnGroups = "std" )
93
- public void categoryNameRuShouldNotStartsFromHyphen () {
94
- page .addCategory (TEST_CATEGORY_NAME_EN , "-тест" );
95
-
96
- assertThat (page ).field ("nameRu" ).hasError (tr ("value.hyphen" ));
97
- }
98
-
99
85
@ Test (groups = "invalid" , dependsOnGroups = "std" )
100
86
public void categoryNameEnShouldNotEndsWithHyphen () {
101
87
page .addCategory ("test-" , TEST_CATEGORY_NAME_RU );
Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ Create category with repeating hyphens in name
41
41
Element Text Should Be id=name.errors Value must not contain repetition of hyphen
42
42
Element Text Should Be id=nameRu.errors Value must not contain repetition of hyphen
43
43
44
+ Create category with name that starts with hyphen
45
+ [Documentation] Verify validation of name with leading hyphen
46
+ Input Text id=name -test
47
+ Input Text id=nameRu -тест
48
+ Submit Form id=add-category-form
49
+ Element Text Should Be id=name.errors Value must not start or end with hyphen
50
+ Element Text Should Be id=nameRu.errors Value must not start or end with hyphen
51
+
44
52
Create category with existing name
45
53
[Documentation] Verify validation of non-unique name
46
54
Input Text id=name Sport
You can’t perform that action at this time.
0 commit comments