Clean code

This commit is contained in:
mhajas 2015-10-16 12:09:35 +02:00
parent 41a51d924b
commit 39f985e04a
2 changed files with 2 additions and 3 deletions

View file

@ -34,8 +34,6 @@ public class PasswordPolicy extends Authentication {
public void addPolicy(PasswordPolicy.Type policy, String value) { public void addPolicy(PasswordPolicy.Type policy, String value) {
waitGuiForElement(addPolicySelectElement); waitGuiForElement(addPolicySelectElement);
addPolicySelect.selectByVisibleText(policy.getName()); addPolicySelect.selectByVisibleText(policy.getName());
//addPolicySelect.selectByValue(policy.getName());
setPolicyValue(policy, value); setPolicyValue(policy, value);
primaryButton.click(); primaryButton.click();
} }

View file

@ -23,9 +23,10 @@ import static org.keycloak.representations.idm.CredentialRepresentation.PASSWORD
public class LoginEventsTest extends AbstractConsoleTest { public class LoginEventsTest extends AbstractConsoleTest {
@Page @Page
private LoginEvents loginEventsPage; private LoginEvents loginEventsPage;
@Page @Page
private Config configPage; private Config configPage;
@Before @Before
public void beforeLoginEventsTest() { public void beforeLoginEventsTest() {
RealmRepresentation realm = testRealmResource().toRepresentation(); RealmRepresentation realm = testRealmResource().toRepresentation();