mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 15:02:05 -03:30
Fix Microsoft social login test case
Resolves #27120 Signed-off-by: Tomas Ondrusko <tondrusk@redhat.com> (cherry picked from commit 055a0e2231896370b8e663d6074f8891109b12d7)
This commit is contained in:
parent
c6bee418d7
commit
e44df38908
@ -35,6 +35,9 @@ public class MicrosoftLoginPage extends AbstractSocialLoginPage {
|
||||
@FindBy(id = "idSIButton9")
|
||||
private WebElement submitButton;
|
||||
|
||||
@FindBy(id = "acceptButton")
|
||||
private WebElement acceptButton;
|
||||
|
||||
@FindBy(xpath = "//input[contains(@class,'btn-primary')]")
|
||||
private WebElement appAccessButton;
|
||||
|
||||
@ -57,7 +60,7 @@ public class MicrosoftLoginPage extends AbstractSocialLoginPage {
|
||||
// While logging into the app for the first time user is asked if he wants to stay signed in
|
||||
try {
|
||||
WaitUtils.pause(3000);
|
||||
submitButton.click();
|
||||
acceptButton.click();
|
||||
}
|
||||
catch (NoSuchElementException e) {
|
||||
log.info("User already allowed in the app");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user