Skip to content

Commit 1d731f0

Browse files
authored
Update the Remote-Robot to version 0.11.14 (#125)
Fixes #122 Signed-off-by: Zbynek Cervinka <[email protected]>
1 parent 0f15cdc commit 1d731f0

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
group 'com.redhat.devtools.intellij'
1010
version projectVersion
1111

12-
def remoteRobotVersion = '0.11.13'
12+
def remoteRobotVersion = '0.11.14'
1313

1414
repositories {
1515
mavenLocal()

src/main/java/com/redhat/devtools/intellij/commonuitest/fixtures/mainidewindow/toolwindowspane/ProjectExplorer.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,9 @@ public ProjectExplorer(@NotNull RemoteRobot remoteRobot, @NotNull RemoteComponen
4848
* @return true if the given file exists on the given path in the project
4949
*/
5050
public boolean isItemPresent(String... path) {
51-
try {
52-
projectViewTree().expand(path);
53-
projectViewTree().clickPath(path, true);
54-
} catch (Exception e) {
55-
if (!(e instanceof JTreeFixture.PathNotFoundException)) {
56-
throw e;
57-
}
58-
return false;
59-
}
60-
return true;
51+
projectViewTree().expand(path);
52+
path[0] = projectViewTree().getValueAtRow(0);
53+
return projectViewTree().isPathExists(path, true);
6154
}
6255

6356
/**
@@ -67,6 +60,7 @@ public boolean isItemPresent(String... path) {
6760
*/
6861
public void openFile(String... path) {
6962
projectViewTree().expand(path);
63+
path[0] = projectViewTree().getValueAtRow(0);
7064
projectViewTree().doubleClickPath(path, true);
7165
}
7266

src/test-project/src/test/java/com/redhat/devtools/intellij/commonuitest/fixtures/test/mainidewindow/toolwindowspane/ProjectExplorerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ public void openViewsPopupTest() {
107107
@Test
108108
public void selectOpenedFileTest() {
109109
projectExplorer.openFile(PROJECT_NAME, PROJECT_NAME + ".iml");
110-
projectExplorer.projectViewTree().clickPath(new String[]{PROJECT_NAME}, true);
110+
projectExplorer.projectViewTree().clickRow(0);
111111
projectExplorer.selectOpenedFile();
112-
assertTrue(projectExplorer.projectViewTree().isPathSelected(PROJECT_NAME, PROJECT_NAME + ".iml"), "The file 'modules.xml' should be selected but is not.");
112+
assertTrue(projectExplorer.projectViewTree().isPathSelected(projectExplorer.projectViewTree().getValueAtRow(0), PROJECT_NAME + ".iml"), "The file 'modules.xml' should be selected but is not.");
113113
}
114114

115115
@Test

0 commit comments

Comments
 (0)