Merge pull request #4463 from vmuzikar/fix-socialtests
KEYCLOAK-5437 Fix Facebook social login test
This commit is contained in:
commit
42bb09fa31
7 changed files with 7 additions and 0 deletions
|
@ -35,6 +35,7 @@ public class FacebookLoginPage extends AbstractSocialLoginPage {
|
|||
|
||||
@Override
|
||||
public void login(String user, String password) {
|
||||
emailInput.clear();
|
||||
emailInput.sendKeys(user);
|
||||
passwordInput.sendKeys(password);
|
||||
loginButton.click();
|
||||
|
|
|
@ -35,6 +35,7 @@ public class GitHubLoginPage extends AbstractSocialLoginPage {
|
|||
|
||||
@Override
|
||||
public void login(String user, String password) {
|
||||
usernameInput.clear();
|
||||
usernameInput.sendKeys(user);
|
||||
passwordInput.sendKeys(password);
|
||||
loginButton.click();
|
||||
|
|
|
@ -41,6 +41,7 @@ public class GoogleLoginPage extends AbstractSocialLoginPage {
|
|||
firstAccount.click();
|
||||
}
|
||||
catch (NoSuchElementException e) {
|
||||
emailInput.clear();
|
||||
emailInput.sendKeys(user);
|
||||
emailInput.sendKeys(Keys.RETURN);
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@ public class LinkedInLoginPage extends AbstractSocialLoginPage {
|
|||
|
||||
@Override
|
||||
public void login(String user, String password) {
|
||||
usernameInput.clear();
|
||||
usernameInput.sendKeys(user);
|
||||
passwordInput.sendKeys(password);
|
||||
loginButton.click();
|
||||
|
|
|
@ -35,6 +35,7 @@ public class MicrosoftLoginPage extends AbstractSocialLoginPage {
|
|||
|
||||
@Override
|
||||
public void login(String user, String password) {
|
||||
usernameInput.clear();
|
||||
usernameInput.sendKeys(user);
|
||||
submitButton.click();
|
||||
passwordInput.sendKeys(password);
|
||||
|
|
|
@ -48,6 +48,7 @@ public class StackOverflowLoginPage extends AbstractSocialLoginPage {
|
|||
|
||||
driver.switchTo().frame(loginFrame);
|
||||
|
||||
usernameInput.clear();
|
||||
usernameInput.sendKeys(user);
|
||||
passwordInput.sendKeys(password);
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ public class TwitterLoginPage extends AbstractSocialLoginPage {
|
|||
|
||||
@Override
|
||||
public void login(String user, String password) {
|
||||
usernameInput.clear();
|
||||
usernameInput.sendKeys(user);
|
||||
passwordInput.sendKeys(password);
|
||||
loginButton.click();
|
||||
|
|
Loading…
Reference in a new issue