File tree Expand file tree Collapse file tree 2 files changed +8
-17
lines changed
java/ru/mystamps/web/tests/cases
robotframework/category/creation Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 33
33
34
34
public class WhenAdminAddCategory extends WhenAnyUserAtAnyPageWithForm <AddCategoryPage > {
35
35
36
- private static final String TEST_CATEGORY_NAME_EN = "Space" ;
37
- private static final String TEST_CATEGORY_NAME_RU = "Космос" ;
38
-
39
36
@ Value ("${valid_admin_login}" )
40
37
private String validAdminLogin ;
41
38
@@ -81,20 +78,6 @@ public void categoryNameRuWithAllowedCharactersShouldBeAccepted() {
81
78
82
79
assertThat (page ).field ("nameRu" ).hasNoError ();
83
80
}
84
-
85
- @ Test (groups = "misc" , dependsOnGroups = "std" )
86
- public void categoryNameEnShouldReplaceRepeatedSpacesByOne () {
87
- page .addCategory ("t3 st" , TEST_CATEGORY_NAME_RU );
88
-
89
- assertThat (page ).field ("name" ).hasValue ("t3 st" );
90
- }
91
-
92
- @ Test (groups = "misc" , dependsOnGroups = "std" )
93
- public void categoryNameRuShouldReplaceRepeatedSpacesByOne () {
94
- page .addCategory (TEST_CATEGORY_NAME_EN , "т3 ст" );
95
-
96
- assertThat (page ).field ("nameRu" ).hasValue ("т3 ст" );
97
- }
98
81
99
82
@ Override
100
83
protected void checkServerResponseCode () {
Original file line number Diff line number Diff line change @@ -15,6 +15,14 @@ Category name should be stripped from leading and trailing spaces
15
15
Textfield Value Should Be id=name t3st
16
16
Textfield Value Should Be id=nameRu т3ст
17
17
18
+ Category name should be modified by replacing multiple spaces by one
19
+ [Documentation] Verify replacing of repeating spaces from name
20
+ Input Text id=name t3${SPACE * 2 } st
21
+ Input Text id=nameRu т3${SPACE * 2 } ст
22
+ Submit Form id=add-category-form
23
+ Textfield Value Should Be id=name t3 st
24
+ Textfield Value Should Be id=nameRu т3 ст
25
+
18
26
*** Keywords ***
19
27
Before Test Suite
20
28
[Documentation] Open browsers, register fail hook and login as admin
You can’t perform that action at this time.
0 commit comments