From 5b7775bb71400dc4c519ee2c65bac0002c15b993 Mon Sep 17 00:00:00 2001 From: Aleksey Rostovskiy Date: Fri, 6 Oct 2017 14:20:40 +0300 Subject: [PATCH] [gui-tests] add desktop entry checkbox existence check --- .../src/com/intellij/testGuiFramework/impl/FirstStart.kt | 5 +++++ 1 file changed, 5 insertions(+) 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) + } } }