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

Refactor ProjectExplorer page-object in the selenium tests #7631

Merged
merged 21 commits into from
Dec 20, 2017

Conversation

Ohrimenko1988
Copy link
Contributor

What does this PR do?

Refactoring of methods in the ProjectExplorer page-object

What issues does this PR fix or reference?

Issue: #7605

Release Notes

Docs PR

@Ohrimenko1988 Ohrimenko1988 added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. target/che6 labels Nov 29, 2017
@benoitf benoitf added the kind/bug Outline of a bug - must adhere to the bug report template. label Nov 29, 2017
@Ohrimenko1988
Copy link
Contributor Author

ci-test

@codenvy-ci
Copy link

@dmytro-ndp dmytro-ndp removed their request for review November 30, 2017 14:37
@Ohrimenko1988
Copy link
Contributor Author

ci-test

/**
* @param path path to item in Project Explorer
* @param timeout timeout in seconds
* @return finded WebElement
Copy link
Contributor

Choose a reason for hiding this comment

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

finded > found

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, thx

@codenvy-ci
Copy link

@Ohrimenko1988
Copy link
Contributor Author

ci-test

@codenvy-ci
Copy link

@Ohrimenko1988
Copy link
Contributor Author

ci-test

@codenvy-ci
Copy link

public void selectMultiFilesByShiftKeyWithCheckMultiselection(
String clickItemPath, List<String> selectedItemsPaths) {
Actions actions = actionsFactory.createAction(seleniumWebDriver);
actions.keyDown(Keys.SHIFT).perform();
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use static import for simplifying constant references similar to how it had been done in other parts of code.

ExpectedConditions.not(
ExpectedConditions.presenceOfAllElementsLocatedBy(By.xpath(locator))));
loadPageTimeout.until(
ExpectedConditions.not(
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use static import for simplifying static method references similar to how it had been done in other parts of code.

@Ohrimenko1988
Copy link
Contributor Author

ci-test

@codenvy-ci
Copy link

@dmytro-ndp
Copy link
Contributor

@Ohrimenko1988
Copy link
Contributor Author

@Ohrimenko1988 Ohrimenko1988 merged commit 28ca6c5 into che6 Dec 20, 2017
@Ohrimenko1988 Ohrimenko1988 deleted the update-click-on-context-menu-item branch December 20, 2017 08:39
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Dec 20, 2017
@benoitf benoitf added this to the 6.0.0-M4 milestone Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants