-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
Signed-off-by: Anatoliy Bazko <[email protected]>
@@ -650,6 +650,11 @@ public void apply(java.util.Optional<VirtualFile> optionalFile) | |||
callback.onSuccess(null); | |||
} | |||
} | |||
}) | |||
.catchError( | |||
error -> { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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")) |
There was a problem hiding this comment.
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")); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
* Fix selenium tests in projectexplorer package Signed-off-by: Anatoliy Bazko <[email protected]> * Fixup Signed-off-by: Anatoliy Bazko <[email protected]>
Signed-off-by: Anatoliy Bazko <[email protected]>
Signed-off-by: Anatoliy Bazko <[email protected]>
Signed-off-by: Anatoliy Bazko <[email protected]>
Signed-off-by: Anatoliy Bazko <[email protected]>
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