mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-16 20:15:46 -06:00
Fix Microsoft social login test case
Resolves #27120
Signed-off-by: Tomas Ondrusko <tondrusk@redhat.com>
(cherry picked from commit 055a0e2231)
This commit is contained in:
committed by
Alexander Schwartz
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");
|
||||
|
||||
Reference in New Issue
Block a user