@@ -50,12 +50,6 @@ public class WhenAdminAddCountry extends WhenAnyUserAtAnyPageWithForm<AddCountry
50
50
@ Value ("${valid_admin_password}" )
51
51
private String validAdminPassword ;
52
52
53
- @ Value ("${valid_country_name_en}" )
54
- private String existingCountryNameEn ;
55
-
56
- @ Value ("${valid_country_name_ru}" )
57
- private String existingCountryNameRu ;
58
-
59
53
public WhenAdminAddCountry () {
60
54
super (AddCountryPage .class );
61
55
hasTitle (tr ("t_add_country" ));
@@ -82,24 +76,6 @@ public void shouldHaveStandardStructure() {
82
76
checkStandardStructure ();
83
77
}
84
78
85
- @ Test (groups = "invalid" , dependsOnGroups = "std" )
86
- public void countryNameEnShouldBeUnique () {
87
- page .addCountry (existingCountryNameEn , TEST_COUNTRY_NAME_RU );
88
-
89
- assertThat (page )
90
- .field ("name" )
91
- .hasError (tr ("ru.mystamps.web.validation.jsr303.UniqueCountryName.message" ));
92
- }
93
-
94
- @ Test (groups = "invalid" , dependsOnGroups = "std" )
95
- public void countryNameRuShouldBeUnique () {
96
- page .addCountry (TEST_COUNTRY_NAME_EN , existingCountryNameRu );
97
-
98
- assertThat (page )
99
- .field ("nameRu" )
100
- .hasError (tr ("ru.mystamps.web.validation.jsr303.UniqueCountryName.message" ));
101
- }
102
-
103
79
@ Test (groups = "valid" , dependsOnGroups = "std" )
104
80
public void countryNameEnWithAllowedCharactersShouldBeAccepted () {
105
81
page .addCountry ("Valid-Name Country" , "НазваниеСтраны" );
0 commit comments