Skip to content

Commit

Permalink
Adapt Java selenium e2e tests to Openshift OAuth v4 (#13887)
Browse files Browse the repository at this point in the history
Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>
  • Loading branch information
dmytro-ndp authored Jul 17, 2019
1 parent e965a9d commit 4d0ece7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import static java.util.Arrays.asList;
import static org.eclipse.che.selenium.pageobject.site.CheLoginPage.Locators.LOGIN_BUTTON_NAME;
import static org.eclipse.che.selenium.pageobject.site.CheLoginPage.Locators.OPEN_SHIFT_OAUTH_LINK_ID;
import static org.eclipse.che.selenium.pageobject.site.CheLoginPage.Locators.OPEN_SHIFT_OAUTH_LINK_XPATH;
import static org.eclipse.che.selenium.pageobject.site.CheLoginPage.Locators.PASSWORD_INPUT_NAME;
import static org.eclipse.che.selenium.pageobject.site.CheLoginPage.Locators.USERNAME_INPUT_NAME;

Expand All @@ -38,7 +38,7 @@ protected interface Locators {
String USERNAME_INPUT_NAME = "username";
String PASSWORD_INPUT_NAME = "password";
String LOGIN_BUTTON_NAME = "login";
String OPEN_SHIFT_OAUTH_LINK_ID = "zocial-openshift-v3";
String OPEN_SHIFT_OAUTH_LINK_XPATH = "//a[@id[contains(.,'zocial-openshift-v')]]";

String ERROR_ALERT_XPATH = "//div[@class='alert alert-error']/span[@class='kc-feedback-text']";
String INFO_ALERT_XPATH = "//div[@class='alert alert-info']/span[@class='kc-feedback-text']";
Expand All @@ -53,7 +53,7 @@ protected interface Locators {
@FindBy(name = LOGIN_BUTTON_NAME)
private WebElement loginButton;

@FindBy(id = OPEN_SHIFT_OAUTH_LINK_ID)
@FindBy(xpath = OPEN_SHIFT_OAUTH_LINK_XPATH)
private WebElement openShiftOAuthLink;

@FindBy(xpath = Locators.INFO_ALERT_XPATH)
Expand Down

0 comments on commit 4d0ece7

Please sign in to comment.