From dde00df4eeb81657e218bd9aaf99daf374171710 Mon Sep 17 00:00:00 2001 From: Sergey Karashevich Date: Wed, 25 Apr 2018 13:43:02 +0300 Subject: [PATCH] [gui-test] update project view node descriptor on EDT --- .../intellij/testGuiFramework/fixtures/ProjectViewFixture.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/ProjectViewFixture.kt b/platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/ProjectViewFixture.kt index 7c9e45332465..ea86ae9666d9 100644 --- a/platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/ProjectViewFixture.kt +++ b/platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/ProjectViewFixture.kt @@ -29,7 +29,6 @@ import com.intellij.openapi.roots.JdkOrderEntry import com.intellij.openapi.ui.Queryable import com.intellij.openapi.util.Ref import com.intellij.openapi.util.text.StringUtil -import com.intellij.testFramework.PlatformTestUtil import com.intellij.testGuiFramework.framework.GuiTestUtil.SHORT_TIMEOUT import com.intellij.testGuiFramework.impl.GuiTestUtilKt import com.intellij.testGuiFramework.impl.GuiTestUtilKt.computeOnEdt @@ -43,7 +42,6 @@ import org.fest.swing.core.MouseButton import org.fest.swing.core.Robot import org.fest.swing.edt.GuiActionRunner import org.fest.swing.edt.GuiTask -import org.fest.swing.exception.ComponentLookupException import org.fest.swing.exception.WaitTimedOutError import org.junit.Assert.assertNotNull import java.awt.Point @@ -321,7 +319,7 @@ class ProjectViewFixture internal constructor(project: Project, robot: Robot) : private fun getNodeText(node: Any): String? { assert(node is PresentableNodeDescriptor<*>) val descriptor = node as PresentableNodeDescriptor<*> - descriptor.update() + runOnEdt { descriptor.update() } return descriptor.presentation.presentableText } }