KEYCLOAK-6757 Fix Microsoft Social Login test
This commit is contained in:
parent
68a54abb09
commit
393ff50b8d
1 changed files with 8 additions and 2 deletions
|
@ -18,6 +18,7 @@
|
||||||
package org.keycloak.testsuite.pages.social;
|
package org.keycloak.testsuite.pages.social;
|
||||||
|
|
||||||
import org.keycloak.testsuite.util.WaitUtils;
|
import org.keycloak.testsuite.util.WaitUtils;
|
||||||
|
import org.openqa.selenium.NoSuchElementException;
|
||||||
import org.openqa.selenium.WebElement;
|
import org.openqa.selenium.WebElement;
|
||||||
import org.openqa.selenium.support.FindBy;
|
import org.openqa.selenium.support.FindBy;
|
||||||
|
|
||||||
|
@ -42,7 +43,12 @@ public class MicrosoftLoginPage extends AbstractSocialLoginPage {
|
||||||
submitButton.click();
|
submitButton.click();
|
||||||
|
|
||||||
WaitUtils.pause(5000);
|
WaitUtils.pause(5000);
|
||||||
passwordInput.sendKeys(password);
|
try {
|
||||||
submitButton.click();
|
passwordInput.sendKeys(password);
|
||||||
|
submitButton.click();
|
||||||
|
}
|
||||||
|
catch (NoSuchElementException e) {
|
||||||
|
log.info("Already logged in to Microsoft IdP, no need to enter password");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue