Merge pull request #4463 from vmuzikar/fix-socialtests

KEYCLOAK-5437 Fix Facebook social login test
This commit is contained in:
Pavel Drozd 2017-09-15 13:37:16 +02:00 committed by GitHub
commit 42bb09fa31
7 changed files with 7 additions and 0 deletions

View file

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

View file

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

View file

@ -41,6 +41,7 @@ public class GoogleLoginPage extends AbstractSocialLoginPage {
firstAccount.click();
}
catch (NoSuchElementException e) {
emailInput.clear();
emailInput.sendKeys(user);
emailInput.sendKeys(Keys.RETURN);
}

View file

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

View file

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

View file

@ -48,6 +48,7 @@ public class StackOverflowLoginPage extends AbstractSocialLoginPage {
driver.switchTo().frame(loginFrame);
usernameInput.clear();
usernameInput.sendKeys(user);
passwordInput.sendKeys(password);

View file

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