diff --git a/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/FirstStart.kt b/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/FirstStart.kt index f625ff3f36a6..5c4f3d2a7e26 100644 --- a/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/FirstStart.kt +++ b/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/FirstStart.kt @@ -30,6 +30,7 @@ import org.fest.swing.core.Robot import org.fest.swing.core.SmartWaitRobot import org.fest.swing.exception.ComponentLookupException import org.fest.swing.exception.WaitTimedOutError +import org.fest.swing.fixture.AbstractComponentFixture import org.fest.swing.fixture.JButtonFixture import org.fest.swing.fixture.JCheckBoxFixture import org.fest.swing.fixture.JRadioButtonFixture @@ -261,6 +262,10 @@ abstract class FirstStart(val ideType: IdeType) { return reference.get() } + + fun exists(fixture: () -> AbstractComponentFixture<*, *, *>): Boolean { + return GuiTestCase().exists(fixture) + } } }