Fix Microsoft social login test case

Resolves #27120

Signed-off-by: Tomas Ondrusko <tondrusk@redhat.com>
This commit is contained in:
Tomas Ondrusko 2024-02-19 10:33:33 +01:00 committed by Alexander Schwartz
parent fb49c21f90
commit 055a0e2231

View file

@ -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");