File tree Expand file tree Collapse file tree 2 files changed +8
-18
lines changed
java/ru/mystamps/web/tests/cases
robotframework/country/creation Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -114,24 +114,6 @@ public void countryNameRuWithAllowedCharactersShouldBeAccepted() {
114
114
assertThat (page ).field ("nameRu" ).hasNoError ();
115
115
}
116
116
117
- @ Test (groups = "invalid" , dependsOnGroups = "std" )
118
- public void countryNameEnShouldNotStartsFromHyphen () {
119
- page .addCountry ("-test" , TEST_COUNTRY_NAME_RU );
120
-
121
- assertThat (page )
122
- .field ("name" )
123
- .hasError (tr ("value.hyphen" ));
124
- }
125
-
126
- @ Test (groups = "invalid" , dependsOnGroups = "std" )
127
- public void countryNameRuShouldNotStartsFromHyphen () {
128
- page .addCountry (TEST_COUNTRY_NAME_EN , "-тест" );
129
-
130
- assertThat (page )
131
- .field ("nameRu" )
132
- .hasError (tr ("value.hyphen" ));
133
- }
134
-
135
117
@ Test (groups = "invalid" , dependsOnGroups = "std" )
136
118
public void countryNameEnShouldNotEndsWithHyphen () {
137
119
page .addCountry ("test-" , TEST_COUNTRY_NAME_RU );
Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ Create country 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 country 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-country-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
*** Keywords ***
45
53
Before Test Suite
46
54
[Documentation] Open browsers, register fail hook and login as admin
You can’t perform that action at this time.
0 commit comments