Skip to content

Commit cce76cc

Browse files
authored
Fix the TimeoutException while working with the gradle tasks tree (JTreeFixture) on OS X (#127)
Fixes #126 Signed-off-by: Zbynek Cervinka <[email protected]>
1 parent 1d731f0 commit cce76cc

File tree

1 file changed

+8
-1
lines changed
  • src/main/java/com/redhat/devtools/intellij/commonuitest/fixtures/mainidewindow/toolwindowspane/buildtoolpane

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,14 @@ public void collapseAll() {
7373
*/
7474
public void buildProject() {
7575
waitFor(Duration.ofSeconds(30), Duration.ofSeconds(2), "The Gradle tasks tree did not appear in 30 seconds.", this::isGradleTreeVisible);
76-
gradleTaskTree().expandAll();
76+
77+
// ISSUE #199 - https://github.com/JetBrains/intellij-ui-test-robot/issues/199
78+
if (remoteRobot.isMac()) {
79+
expandAll();
80+
} else {
81+
gradleTaskTree().expandAll();
82+
}
83+
7784
gradleTaskTree().findAllText("build").get(1).doubleClick();
7885
if (UITestRunner.getIdeaVersionInt() >= 20221) {
7986
remoteRobot.find(ToolWindowPane.class).find(BuildView.class).waitUntilBuildHasFinished();

0 commit comments

Comments
 (0)