Fixed addDisabledUser test
This commit is contained in:
parent
ea544c639e
commit
5fe0406ec9
1 changed files with 6 additions and 3 deletions
|
@ -100,13 +100,16 @@ public class AddNewUserTest extends AbstractKeyCloakTest<UserPage> {
|
|||
|
||||
@Test
|
||||
public void addDisabledUser() {
|
||||
page.addUser(TEST_USER1);
|
||||
User disabledUser = new User(TEST_USER1);
|
||||
disabledUser.setUserEnabled(false);
|
||||
disabledUser.setUserName("disabled_user");
|
||||
page.addUser(disabledUser);
|
||||
assertTrue(flashMessage.getText(), flashMessage.isSuccess());
|
||||
navigation.users();
|
||||
page.deleteUser(TEST_USER1.getUserName());
|
||||
page.deleteUser(disabledUser.getUserName());
|
||||
flashMessage.waitUntilPresent();
|
||||
assertTrue(flashMessage.getText(), flashMessage.isSuccess());
|
||||
assertNull(page.findUser(TEST_USER1.getUserName()));
|
||||
assertNull(page.findUser(disabledUser.getUserName()));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue