Clean code
This commit is contained in:
parent
41a51d924b
commit
39f985e04a
2 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue