KEYCLOAK-4147 Fix Password Policy UI test
This commit is contained in:
parent
d217b23719
commit
90a5272860
1 changed files with 6 additions and 2 deletions
|
@ -50,7 +50,9 @@ public class PasswordPolicy extends Authentication {
|
|||
|
||||
public void removePolicy(Type policy) {
|
||||
getPolicyRow(policy).findElement(By.cssSelector("td.kc-action-cell")).click();
|
||||
primaryButton.click();
|
||||
if (primaryButton.isEnabled()) {
|
||||
primaryButton.click();
|
||||
}
|
||||
waitForPageToLoad(driver);
|
||||
}
|
||||
|
||||
|
@ -60,7 +62,9 @@ public class PasswordPolicy extends Authentication {
|
|||
|
||||
public void editPolicy(Type policy, String value) {
|
||||
setPolicyValue(policy, value);
|
||||
primaryButton.click();
|
||||
if (primaryButton.isEnabled()) {
|
||||
primaryButton.click();
|
||||
}
|
||||
waitForPageToLoad(driver);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue