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 categoryNameEnShouldNotEndsWithHyphen () {
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 categoryNameRuShouldNotEndsWithHyphen () {
94
- page .addCategory (TEST_CATEGORY_NAME_EN , "тест-" );
95
-
96
- assertThat (page ).field ("nameRu" ).hasError (tr ("value.hyphen" ));
97
- }
98
-
99
85
@ Test (groups = "misc" , dependsOnGroups = "std" )
100
86
public void categoryNameEnShouldBeStripedFromLeadingAndTrailingSpaces () {
101
87
page .addCategory (" t3st " , TEST_CATEGORY_NAME_RU );
Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ Create category with name that starts with hyphen
49
49
Element Text Should Be id=name.errors Value must not start or end with hyphen
50
50
Element Text Should Be id=nameRu.errors Value must not start or end with hyphen
51
51
52
+ Create category with name that ends with hyphen
53
+ [Documentation] Verify validation of name with trailing hyphen
54
+ Input Text id=name test-
55
+ Input Text id=nameRu тест-
56
+ Submit Form id=add-category-form
57
+ Element Text Should Be id=name.errors Value must not start or end with hyphen
58
+ Element Text Should Be id=nameRu.errors Value must not start or end with hyphen
59
+
52
60
Create category with existing name
53
61
[Documentation] Verify validation of non-unique name
54
62
Input Text id=name Sport
You can’t perform that action at this time.
0 commit comments