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

Fix selenium tests in projectexplorer package #10452

Merged
merged 2 commits into from
Jul 18, 2018
Merged

Conversation

tolusha
Copy link
Contributor

@tolusha tolusha commented Jul 17, 2018

Signed-off-by: Anatoliy Bazko [email protected]

What does this PR do?

Fix tests in projectexplorer package

What issues does this PR fix or reference?

#10451

@tolusha tolusha self-assigned this Jul 17, 2018
@tolusha tolusha requested review from svor and tsmaeder July 17, 2018 12:34
@tolusha tolusha requested a review from vparfonov as a code owner July 17, 2018 12:34
@benoitf benoitf added target/branch Indicates that a PR will be merged into a branch other than master. kind/task Internal things, technical debt, and to-do tasks to be performed. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Jul 17, 2018
@@ -650,6 +650,11 @@ public void apply(java.util.Optional<VirtualFile> optionalFile)
callback.onSuccess(null);
}
}
})
.catchError(
error -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we log this or show a message to the user?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so.
Accordingly to the code above

 } else {
                          removeFromOpeningFilesList(path, editorPartStack);
                          callback.onSuccess(null);
                        }

it is an usual case.

.toString();
.stream()
// target directory appears asynchronously and leads to failed tests
.filter(s -> !s.contains("target"))
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be "startsWith("/target") for more robustness?

@@ -86,6 +77,6 @@ private void openFileFromExternalLibraryAndCheckDisplayedText() {

editor.waitActive();
editor.waitTabIsPresent(CHECKING_FILE_NAME);
editor.waitTextIntoEditor(EXPECTED_EDITOR_TEXT);
assertTrue(editor.getVisibleTextFromEditor().contains("package javax.servlet"));
Copy link
Contributor

Choose a reason for hiding this comment

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

This tests for less text than before. Why not check the whole text?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

waitTextIntoEditor checks only visible text. So, it depends on the screen resolution.
In master branch it contains decomplied code which fits the screen. In 5730 branch it contains source code, that's why I've changed the expectation.

Signed-off-by: Anatoliy Bazko <[email protected]>
@tolusha tolusha merged commit e3665e1 into 5730_java_ls_poc Jul 18, 2018
@tolusha tolusha deleted the SeleniumTestFix branch July 18, 2018 13:37
@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 Jul 18, 2018
tsmaeder pushed a commit that referenced this pull request Jul 27, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tolusha added a commit that referenced this pull request Aug 7, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tsmaeder pushed a commit that referenced this pull request Aug 22, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tsmaeder pushed a commit that referenced this pull request Aug 29, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tolusha added a commit that referenced this pull request Sep 5, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tsmaeder pushed a commit that referenced this pull request Sep 13, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tsmaeder pushed a commit that referenced this pull request Sep 20, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tsmaeder pushed a commit that referenced this pull request Sep 26, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tsmaeder pushed a commit that referenced this pull request Oct 1, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tsmaeder pushed a commit that referenced this pull request Oct 5, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tsmaeder pushed a commit that referenced this pull request Oct 12, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tsmaeder pushed a commit that referenced this pull request Oct 16, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tsmaeder pushed a commit that referenced this pull request Oct 17, 2018
* Fix selenium tests in projectexplorer package

Signed-off-by: Anatoliy Bazko <[email protected]>

* Fixup

Signed-off-by: Anatoliy Bazko <[email protected]>
tsmaeder pushed a commit that referenced this pull request Oct 17, 2018
tsmaeder pushed a commit that referenced this pull request Oct 17, 2018
tsmaeder pushed a commit that referenced this pull request Oct 17, 2018
tsmaeder pushed a commit that referenced this pull request Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed. target/branch Indicates that a PR will be merged into a branch other than master.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants