Skip to content

Commit eebd13c

Browse files
committed
WhenAnonymousUserActivateAccount.loginWithForbiddenCharactersShouldBeRejected(): port to Robot Framework.
Addressed to #530 No functional changes.
1 parent 8e2d339 commit eebd13c

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@ public void shouldHaveStandardStructure() {
5454
checkStandardStructure();
5555
}
5656

57-
@Test(groups = "invalid", dependsOnGroups = "std")
58-
public void loginWithForbiddenCharactersShouldBeRejected() {
59-
page.activateAccount("'t@$t'", null, null, null, null);
60-
61-
assertThat(page)
62-
.field("login")
63-
.hasError(tr("login.invalid"));
64-
}
65-
6657
@Test(groups = "invalid", dependsOnGroups = "std")
6758
public void loginShouldBeUnique() {
6859
page.activateAccount(validUserLogin, null, null, null, null);

src/test/robotframework/account/activation/validation.robot

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ Activate account with too long login
2828
Submit Form id=activate-account-form
2929
Element Text Should Be id=login.errors Value is greater than allowable maximum of 15 characters
3030

31+
Activate account with forbidden characters in login
32+
Input Text id=login 't@$t'
33+
Submit Form id=activate-account-form
34+
Element Text Should Be id=login.errors Login must consist only latin letters, digits, dot, hyphen or underscore
35+
3136
*** Keywords ***
3237
Before Test Suite
3338
Open Browser ${SITE_URL} ${BROWSER}

0 commit comments

Comments
 (0)