-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add support for IntelliJ 2022.1 #109
Conversation
5d1c8f0
to
f2c2e97
Compare
Fixes redhat-developer#108 Signed-off-by: Zbynek Cervinka <zcervink@redhat.com>
@odockal Please review |
src/main/java/com/redhat/devtools/intellij/commonuitest/UITestRunner.java
Outdated
Show resolved
Hide resolved
.../redhat/devtools/intellij/commonuitest/fixtures/mainidewindow/idestatusbar/IdeStatusBar.java
Outdated
Show resolved
Hide resolved
...s/intellij/commonuitest/fixtures/test/dialogs/project_manipulation/NewProjectDialogTest.java
Outdated
Show resolved
Hide resolved
...vtools/intellij/commonuitest/fixtures/mainidewindow/toolwindowspane/AbstractToolWinPane.java
Show resolved
Hide resolved
src/main/java/com/redhat/devtools/intellij/commonuitest/utils/runner/IntelliJ.java
Outdated
Show resolved
Hide resolved
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.
Enum can be in its own file. no need to wrapping it into java class
- exctraction of the enumeration with supported IntelliJs to start - rewrite some tests to use conditional test execution - fix linux failing test - change the 10 second timeout to 2 seconds Signed-off-by: Zbynek Cervinka <zcervink@redhat.com>
* Wait until all the background tasks finish | ||
*/ | ||
public void waitUntilAllBgTasksFinish(int timeout) { | ||
waitFor(Duration.ofSeconds(timeout), Duration.ofSeconds(10), "The background tasks did not finish in 10 minutes.", this::didAllBgTasksFinish); |
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.
The error message should change to timeout
seconds, right? It is not 10 minutes anymore.
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.
You are right, I have overlooked that. But anyway - I have decided to delete the entire method after all, the test failing due to the timeout is back green. There must be some minor updates from JetBrains to the version 2022.1 that made the test failing and also made it green again.
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.
Update: it looks like the issue with timeout is back again. I tried to increase timeout to 400 (only in the one place, so the parametrized method will be handy - with fixed error message)
Signed-off-by: Zbynek Cervinka <zcervink@redhat.com>
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.
You do not need to wrap the enum into java class. you can create enum file with enum directly.
Fixed |
Fixed |
Signed-off-by: Zbynek Cervinka <zcervink@redhat.com>
Signed-off-by: Zbynek Cervinka <zcervink@redhat.com>
Fixes #108
Signed-off-by: Zbynek Cervinka zcervink@redhat.com