Skip to content

Commit 753edf3

Browse files
authored
Unify the implementation how the IntelliJ is being closed on different platforms (#97)
Fixes #96 Signed-off-by: Zbynek Cervinka <[email protected]>
1 parent aa73c59 commit 753edf3

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repositories {
3232
Add the following dependency:
3333
```
3434
dependencies {
35-
compile 'com.redhat.devtools.intellij:intellij-common-ui-test-library:0.0.7'
35+
compile 'com.redhat.devtools.intellij:intellij-common-ui-test-library:0.0.8-SNAPSHOT'
3636
}
3737
```
3838

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
projectVersion=0.0.7
1+
projectVersion=0.0.8-SNAPSHOT
22
nexusUser=invalid
33
nexusPassword=invalid

src/main/java/com/redhat/devtools/intellij/commonuitest/UITestRunner.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,7 @@ public static RemoteRobot runIde(IdeaVersion ideaVersion) {
9595
* Close the IntelliJ Idea IDE from the 'Welcome to IntelliJ IDEA' dialog
9696
*/
9797
public static void closeIde() {
98-
step("Close IntelliJ Idea", () -> {
99-
if (remoteRobot.isWin()) {
100-
remoteRobot.find(FlatWelcomeFrame.class, Duration.ofSeconds(10)).runJs("const horizontal_offset = component.getWidth() - 24;\n" +
101-
"robot.click(component, new Point(horizontal_offset, 14), MouseButton.LEFT_BUTTON, 2);");
102-
} else {
103-
ideProcess.destroy();
104-
}
105-
});
98+
ideProcess.destroy();
10699
}
107100

108101
/**

0 commit comments

Comments
 (0)