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 @@ -81,20 +81,6 @@ public void categoryNameRuWithAllowedCharactersShouldBeAccepted() {
81
81
82
82
assertThat (page ).field ("nameRu" ).hasNoError ();
83
83
}
84
-
85
- @ Test (groups = "misc" , dependsOnGroups = "std" )
86
- public void categoryNameEnShouldBeStripedFromLeadingAndTrailingSpaces () {
87
- page .addCategory (" t3st " , TEST_CATEGORY_NAME_RU );
88
-
89
- assertThat (page ).field ("name" ).hasValue ("t3st" );
90
- }
91
-
92
- @ Test (groups = "misc" , dependsOnGroups = "std" )
93
- public void categoryNameRuShouldBeStripedFromLeadingAndTrailingSpaces () {
94
- page .addCategory (TEST_CATEGORY_NAME_EN , " т3ст " );
95
-
96
- assertThat (page ).field ("nameRu" ).hasValue ("т3ст" );
97
- }
98
84
99
85
@ Test (groups = "misc" , dependsOnGroups = "std" )
100
86
public void categoryNameEnShouldReplaceRepeatedSpacesByOne () {
Original file line number Diff line number Diff line change @@ -65,6 +65,14 @@ Create category with existing name
65
65
Element Text Should Be id=name.errors Category already exists
66
66
Element Text Should Be id=nameRu.errors Category already exists
67
67
68
+ Category name should be stripped from leading and trailing spaces
69
+ [Documentation] Verify removing of leading and trailing spaces from name
70
+ Input Text id=name ${SPACE * 2 } t3st${SPACE * 2 }
71
+ Input Text id=nameRu ${SPACE * 2 } т3 ст${SPACE * 2 }
72
+ Submit Form id=add-category-form
73
+ Textfield Value Should Be id=name t3st
74
+ Textfield Value Should Be id=nameRu т3ст
75
+
68
76
*** Keywords ***
69
77
Before Test Suite
70
78
[Documentation] Open browsers, register fail hook and login as admin
You can’t perform that action at this time.
0 commit comments