Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selenium: add checking that the Authorize button exists in the ImportProjectFromGitHubTest test #8142

Merged
merged 4 commits into from
Jan 4, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.eclipse.che.selenium.core.SeleniumWebDriver;
import org.eclipse.che.selenium.core.client.TestWorkspaceServiceClient;
import org.eclipse.che.selenium.core.user.TestUser;
import org.eclipse.che.selenium.core.utils.WaitUtils;
import org.eclipse.che.selenium.pageobject.GitHub;
import org.eclipse.che.selenium.pageobject.Loader;
import org.eclipse.che.selenium.pageobject.ProjectExplorer;
Expand Down Expand Up @@ -116,11 +117,10 @@ private void connectGithubAccount() {
gitHub.typeLogin(gitHubUsername);
gitHub.typePass(gitHubPassword);
gitHub.clickOnSignInButton();
loader.waitOnClosed();
WaitUtils.sleepQuietly(5);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to find another solution.


// authorize on github.com
if (seleniumWebDriver.getWindowHandles().size() > 1) {
loader.waitOnClosed();
gitHub.waitAuthorizeBtn();
gitHub.clickOnAuthorizeBtn();
}
Expand Down