Skip to content

Commit

Permalink
Unify the implementation how the IntelliJ is being closed on differen…
Browse files Browse the repository at this point in the history
…t platforms (#97)

Fixes #96

Signed-off-by: Zbynek Cervinka <[email protected]>
  • Loading branch information
zcervink authored Mar 5, 2022
1 parent aa73c59 commit 753edf3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repositories {
Add the following dependency:
```
dependencies {
compile 'com.redhat.devtools.intellij:intellij-common-ui-test-library:0.0.7'
compile 'com.redhat.devtools.intellij:intellij-common-ui-test-library:0.0.8-SNAPSHOT'
}
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
projectVersion=0.0.7
projectVersion=0.0.8-SNAPSHOT
nexusUser=invalid
nexusPassword=invalid
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,7 @@ public static RemoteRobot runIde(IdeaVersion ideaVersion) {
* Close the IntelliJ Idea IDE from the 'Welcome to IntelliJ IDEA' dialog
*/
public static void closeIde() {
step("Close IntelliJ Idea", () -> {
if (remoteRobot.isWin()) {
remoteRobot.find(FlatWelcomeFrame.class, Duration.ofSeconds(10)).runJs("const horizontal_offset = component.getWidth() - 24;\n" +
"robot.click(component, new Point(horizontal_offset, 14), MouseButton.LEFT_BUTTON, 2);");
} else {
ideProcess.destroy();
}
});
ideProcess.destroy();
}

/**
Expand Down

0 comments on commit 753edf3

Please sign in to comment.