From 12fd80ac27ef1c95034b53a98e2fc72ba650a966 Mon Sep 17 00:00:00 2001 From: Sergey Karashevich Date: Thu, 9 Aug 2018 13:39:23 +0300 Subject: [PATCH] [gui-test] catch IllegalStateException for missing action button on ActionToolBar --- .../tests/community/focus/KeyMapSettingsTestFocusTest.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/community-guitests/testSrc/com/intellij/testGuiFramework/tests/community/focus/KeyMapSettingsTestFocusTest.kt b/community-guitests/testSrc/com/intellij/testGuiFramework/tests/community/focus/KeyMapSettingsTestFocusTest.kt index 430b5bb97e0f..1046c0921f00 100644 --- a/community-guitests/testSrc/com/intellij/testGuiFramework/tests/community/focus/KeyMapSettingsTestFocusTest.kt +++ b/community-guitests/testSrc/com/intellij/testGuiFramework/tests/community/focus/KeyMapSettingsTestFocusTest.kt @@ -10,7 +10,6 @@ import com.intellij.testGuiFramework.tests.community.CommunityProjectCreator import com.intellij.testGuiFramework.util.Key.* import com.intellij.testGuiFramework.util.Modifier.* import com.intellij.testGuiFramework.util.plus -import org.fest.swing.exception.ComponentLookupException import org.fest.swing.fixture.JTextComponentFixture import org.fest.swing.timing.Pause import org.junit.Assert @@ -39,7 +38,7 @@ class KeyMapSettingsTestFocusTest : GuiTestCase() { val actionButton = actionButton("Find Actions by Shortcut", Timeouts.seconds10) try { actionButton.click() - } catch (e: ComponentLookupException) { + } catch (e: IllegalStateException) { actionButton("Find Actions by Shortcut").click() // in case of ActionToolBar was reinitialised } val keyboardShortcutPanel = checkbox("Second stroke").target().parent