Reverted to appli to branch master-KEYCLOAK-LoginUsername
This commit is contained in:
parent
4b3d3bf55b
commit
868f8b166f
1 changed files with 0 additions and 34 deletions
|
@ -480,40 +480,6 @@ public class LoginTest extends TestRealmKeycloakTest {
|
|||
setRememberMe(false);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
// KEYCLOAK-3181
|
||||
public void loginWithEmailUserAndRememberMe() {
|
||||
setRememberMe(true);
|
||||
|
||||
try {
|
||||
loginPage.open();
|
||||
loginPage.setRememberMe(true);
|
||||
assertTrue(loginPage.isRememberMeChecked());
|
||||
loginPage.login("login@test.com", "password");
|
||||
|
||||
Assert.assertEquals(RequestType.AUTH_RESPONSE, appPage.getRequestType());
|
||||
Assert.assertNotNull(oauth.getCurrentQuery().get(OAuth2Constants.CODE));
|
||||
EventRepresentation loginEvent = events.expectLogin().user(userId)
|
||||
.detail(Details.USERNAME, "login@test.com")
|
||||
.detail(Details.REMEMBER_ME, "true")
|
||||
.assertEvent();
|
||||
String sessionId = loginEvent.getSessionId();
|
||||
|
||||
// Expire session
|
||||
testingClient.testing().removeUserSession("test", sessionId);
|
||||
|
||||
// Assert rememberMe checked and username/email prefilled
|
||||
loginPage.open();
|
||||
assertTrue(loginPage.isRememberMeChecked());
|
||||
|
||||
Assert.assertEquals("login@test.com", loginPage.getUsername());
|
||||
|
||||
loginPage.setRememberMe(false);
|
||||
} finally {
|
||||
setRememberMe(false);
|
||||
}
|
||||
}
|
||||
|
||||
// KEYCLOAK-1037
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue