Skip to content

Commit bb87ddd

Browse files
committed
test(WhenAnonymousUserRegisterAccount): remove shouldExistsMessageWithLinkToAuthenticationPage() test.
This test doesn't provide much value and it's better to remove it rather than port to Robot Framework. Addressed to #530 No functional changes.
1 parent 4390283 commit bb87ddd

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

src/test/java/ru/mystamps/web/tests/TranslationUtils.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ public static String tr(String key) {
7575
return msg;
7676
}
7777

78-
public static String stripHtmlTags(String msg) {
79-
return msg.replaceAll("\\<.*?>", "");
80-
}
81-
8278
public static String tr(String key, Object... args) {
8379
String messageFormat = tr(key).replaceAll("\\{[^\\}]+\\}", "{0}");
8480
return MessageFormat.format(messageFormat, args);

src/test/java/ru/mystamps/web/tests/cases/WhenAnonymousUserRegisterAccount.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import java.util.regex.Pattern;
3636

3737
import static org.fest.assertions.api.Assertions.assertThat;
38-
import static ru.mystamps.web.tests.TranslationUtils.stripHtmlTags;
3938
import static ru.mystamps.web.tests.TranslationUtils.tr;
4039
import static ru.mystamps.web.tests.fest.PageWithFormAssert.assertThat;
4140

@@ -80,15 +79,6 @@ public void openPage() {
8079
page.open();
8180
}
8281

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-
9282
@Test(groups = "misc")
9383
public void emailShouldBeStripedFromLeadingAndTrailingSpaces() {
9484
page.registerUser(" test ");

src/test/java/ru/mystamps/web/tests/page/AbstractPageWithForm.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ public String getFormError() {
9090
return getTextOfElementByXPath(FORM_ERROR_LOCATOR);
9191
}
9292

93-
public List<String> getFormHints() {
94-
return WebElementUtils.convertToListWithText(
95-
getElementsByClassName("hint_item")
96-
);
97-
}
98-
9993
public List<String> getSelectOptions(String id) {
10094
return WebElementUtils.convertToListWithText(
10195
new Select(getElementById(id)).getOptions()

0 commit comments

Comments
 (0)