From a61d97a777fcd2eaacf3be23bb20c026c3614353 Mon Sep 17 00:00:00 2001 From: "eugene.nizienko" Date: Thu, 8 Feb 2024 18:10:20 +0100 Subject: [PATCH] fixed TreeUI should be accessed only from EDT error --- .../kotlin/com/intellij/remoterobot/fixtures/JTreeFixture.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remote-fixtures/src/main/kotlin/com/intellij/remoterobot/fixtures/JTreeFixture.kt b/remote-fixtures/src/main/kotlin/com/intellij/remoterobot/fixtures/JTreeFixture.kt index f78b496b..8cb7761a 100644 --- a/remote-fixtures/src/main/kotlin/com/intellij/remoterobot/fixtures/JTreeFixture.kt +++ b/remote-fixtures/src/main/kotlin/com/intellij/remoterobot/fixtures/JTreeFixture.kt @@ -149,7 +149,7 @@ open class JTreeFixture(remoteRobot: RemoteRobot, remoteComponent: RemoteCompone fun expandAll(): JTreeFixture { step("Expand all") { - runJs("com.intellij.util.ui.tree.TreeUtil.promiseExpandAll(component).blockingGet(ctx.get('expandTimeout'))") + runJs("com.intellij.util.ui.tree.TreeUtil.promiseExpandAll(component).blockingGet(ctx.get('expandTimeout'))", true) } return this } @@ -168,7 +168,7 @@ open class JTreeFixture(remoteRobot: RemoteRobot, remoteComponent: RemoteCompone const visitor = { visit: visit } com.intellij.util.ui.tree.TreeUtil.promiseExpand(component, new com.intellij.ui.tree.TreeVisitor(visitor)).blockingGet(ctx.get('expandTimeout')) - """) + """, true) return this }