Fix problem with open factory page in the selenium tests (#6789)

6.19.x
Igor Ohrimenko 2017-10-18 14:41:14 +03:00 committed by GitHub
parent 1e3afa6f40
commit 2caee22ecb
2 changed files with 2 additions and 3 deletions

View File

@ -49,9 +49,7 @@ public class TestFactory {
/** Adds authentication token into the browser and opens factory url. */
public void authenticateAndOpen(SeleniumWebDriver driver) throws Exception {
driver.get(dashboardUrl.get().toString());
entrance.login(owner);
driver.get(factoryUrl);
}

View File

@ -63,7 +63,8 @@ public class CheLoginPage implements LoginPage {
public void waitOnClose() {
webDriverWait.until(
ExpectedConditions.invisibilityOfAllElements(ImmutableList.of(loginButton)));
ExpectedConditions.invisibilityOfAllElements(
ImmutableList.of(loginButton, passwordInput, usernameInput)));
}
public boolean isOpened() {