Update social login tests login flows
Signed-off-by: wojnarfilip <fwojnar@redhat.com>
This commit is contained in:
parent
0caca2d6f5
commit
3c429b7506
1 changed files with 10 additions and 0 deletions
|
@ -35,6 +35,9 @@ public class BitbucketLoginPage extends AbstractSocialLoginPage {
|
|||
@FindBy(id = "password")
|
||||
private WebElement passwordInput;
|
||||
|
||||
@FindBy(id = "mfa-promote-dismiss")
|
||||
private WebElement dismissMFA;
|
||||
|
||||
@FindBy(xpath = "//div[contains(@class,'additional-auths')]/p/a")
|
||||
private WebElement loginWithAtlassianButton;
|
||||
|
||||
|
@ -54,5 +57,12 @@ public class BitbucketLoginPage extends AbstractSocialLoginPage {
|
|||
|
||||
passwordInput.sendKeys(password);
|
||||
passwordInput.sendKeys(Keys.RETURN);
|
||||
|
||||
try {
|
||||
clickLink(dismissMFA);
|
||||
}
|
||||
catch (NoSuchElementException e) {
|
||||
log.info("MFA already dismissed");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue