From 5fe0406ec9fce9682186c8214e7312a181402efe Mon Sep 17 00:00:00 2001 From: Petr Mensik Date: Tue, 2 Jun 2015 15:37:19 +0200 Subject: [PATCH] Fixed addDisabledUser test --- .../keycloak/testsuite/ui/test/user/AddNewUserTest.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/testsuite/integration-arquillian/src/test/java/org/keycloak/testsuite/ui/test/user/AddNewUserTest.java b/testsuite/integration-arquillian/src/test/java/org/keycloak/testsuite/ui/test/user/AddNewUserTest.java index 5694c51362..c59cd30b16 100644 --- a/testsuite/integration-arquillian/src/test/java/org/keycloak/testsuite/ui/test/user/AddNewUserTest.java +++ b/testsuite/integration-arquillian/src/test/java/org/keycloak/testsuite/ui/test/user/AddNewUserTest.java @@ -100,13 +100,16 @@ public class AddNewUserTest extends AbstractKeyCloakTest { @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())); }