Skip to content

Commit 402815e

Browse files
committed
test(WhenAnonymousUserAuthenticates): port emptyValuesShouldBeConsideredAsInvalidCredentials() to Robot Framework.
Addressed to #530 No functional changes.
1 parent a36af8f commit 402815e

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ public void openPage() {
5252
page.open();
5353
}
5454

55-
@Test(groups = "invalid")
56-
public void emptyValuesShouldBeConsideredAsInvalidCredentials() {
57-
page.authorizeUser("", "");
58-
59-
assertThat(page.getFormError())
60-
.isEqualTo(tr("AbstractUserDetailsAuthenticationProvider.badCredentials"));
61-
}
62-
6355
@Test(groups = "invalid")
6456
public void invalidCredentialsShouldBeRejected() {
6557
page.authorizeUser(invalidUserLogin, invalidUserPassword);
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*** Settings ***
2+
Documentation Verify account authentication validation scenarios
3+
Library SeleniumLibrary
4+
Suite Setup Before Test Suite
5+
Suite Teardown After Test Suite
6+
Force Tags account authentication validation
7+
8+
*** Test Cases ***
9+
Authenticate with empty credentials
10+
Input Text id=login ${EMPTY}
11+
Input Text id=password ${EMPTY}
12+
Submit Form id=auth-account-form
13+
Element Text Should Be id=form.errors Invalid login or password
14+
15+
*** Keywords ***
16+
Before Test Suite
17+
Open Browser ${SITE_URL}/account/auth ${BROWSER}
18+
Register Keyword To Run On Failure Log Source
19+
20+
After Test Suite
21+
Close Browser

0 commit comments

Comments
 (0)