File tree Expand file tree Collapse file tree 3 files changed +0
-20
lines changed
src/test/java/ru/mystamps/web/tests Expand file tree Collapse file tree 3 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,6 @@ public static String tr(String key) {
75
75
return msg ;
76
76
}
77
77
78
- public static String stripHtmlTags (String msg ) {
79
- return msg .replaceAll ("\\ <.*?>" , "" );
80
- }
81
-
82
78
public static String tr (String key , Object ... args ) {
83
79
String messageFormat = tr (key ).replaceAll ("\\ {[^\\ }]+\\ }" , "{0}" );
84
80
return MessageFormat .format (messageFormat , args );
Original file line number Diff line number Diff line change 35
35
import java .util .regex .Pattern ;
36
36
37
37
import static org .fest .assertions .api .Assertions .assertThat ;
38
- import static ru .mystamps .web .tests .TranslationUtils .stripHtmlTags ;
39
38
import static ru .mystamps .web .tests .TranslationUtils .tr ;
40
39
import static ru .mystamps .web .tests .fest .PageWithFormAssert .assertThat ;
41
40
@@ -80,15 +79,6 @@ public void openPage() {
80
79
page .open ();
81
80
}
82
81
83
- @ Test (groups = "misc" )
84
- public void shouldExistsMessageWithLinkToAuthenticationPage () {
85
- assertThat (page .getFormHints ()).contains (stripHtmlTags (tr ("t_if_you_already_registered" )));
86
-
87
- assertThat (page .existsLinkTo (Url .AUTHENTICATION_PAGE ))
88
- .overridingErrorMessage ("should exists link to authentication page" )
89
- .isTrue ();
90
- }
91
-
92
82
@ Test (groups = "misc" )
93
83
public void emailShouldBeStripedFromLeadingAndTrailingSpaces () {
94
84
page .registerUser (" test " );
Original file line number Diff line number Diff line change @@ -90,12 +90,6 @@ public String getFormError() {
90
90
return getTextOfElementByXPath (FORM_ERROR_LOCATOR );
91
91
}
92
92
93
- public List <String > getFormHints () {
94
- return WebElementUtils .convertToListWithText (
95
- getElementsByClassName ("hint_item" )
96
- );
97
- }
98
-
99
93
public List <String > getSelectOptions (String id ) {
100
94
return WebElementUtils .convertToListWithText (
101
95
new Select (getElementById (id )).getOptions ()
You can’t perform that action at this time.
0 commit comments