Updated test case in RequiredActionResetPasswordTest
This commit is contained in:
parent
1644432df3
commit
75741d17ab
1 changed files with 4 additions and 1 deletions
|
@ -44,6 +44,7 @@ import java.util.LinkedList;
|
|||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a>
|
||||
|
@ -123,7 +124,9 @@ public class RequiredActionResetPasswordTest extends AbstractTestRealmKeycloakTe
|
|||
loginPage.open();
|
||||
loginPage.login("test-user@localhost", "password");
|
||||
changePasswordPage.assertCurrent();
|
||||
assertFalse(changePasswordPage.isLogoutSessionDisplayed());
|
||||
assertTrue(changePasswordPage.isLogoutSessionDisplayed());
|
||||
assertTrue(changePasswordPage.isLogoutSessionsChecked());
|
||||
changePasswordPage.uncheckLogoutSessions();
|
||||
changePasswordPage.changePassword("All Right Then, Keep Your Secrets", "All Right Then, Keep Your Secrets");
|
||||
events.expectRequiredAction(EventType.UPDATE_PASSWORD).assertEvent();
|
||||
events.expectLogin().assertEvent();
|
||||
|
|
Loading…
Reference in a new issue