KEYCLOAK-6757 Fix Microsoft Social Login test

This commit is contained in:
vmuzikar 2018-10-15 11:59:46 +02:00 committed by Hynek Mlnařík
parent 68a54abb09
commit 393ff50b8d

View file

@ -18,6 +18,7 @@
package org.keycloak.testsuite.pages.social;
import org.keycloak.testsuite.util.WaitUtils;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
@ -42,7 +43,12 @@ public class MicrosoftLoginPage extends AbstractSocialLoginPage {
submitButton.click();
WaitUtils.pause(5000);
try {
passwordInput.sendKeys(password);
submitButton.click();
}
catch (NoSuchElementException e) {
log.info("Already logged in to Microsoft IdP, no need to enter password");
}
}
}