From 0babfe26af1eaaac2825ca7207ad1b57e065ae72 Mon Sep 17 00:00:00 2001 From: Artem Gainanov Date: Thu, 21 Dec 2017 23:44:14 +0700 Subject: [PATCH] [gui-test] plugin path selection fix --- .../src/com/intellij/testGuiFramework/impl/GuiTestCase.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/GuiTestCase.kt b/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/GuiTestCase.kt index 2c7f77a9da9b..f6ab12f7914f 100644 --- a/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/GuiTestCase.kt +++ b/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/GuiTestCase.kt @@ -148,8 +148,8 @@ open class GuiTestCase { * is a Mac native. */ fun chooseFileInFileChooser(path: String, timeout: Long = defaultTimeout) { - val macNativeFileChooser = SystemInfo.isMac() && (System.getProperty("ide.mac.file.chooser.native", "true").toLowerCase() == "true") - if (!macNativeFileChooser) { + val macNativeFileChooser = SystemInfo.isMac() && (System.getProperty("ide.mac.file.chooser.native", "true").toLowerCase() == "false") + if (macNativeFileChooser) { MacFileChooserDialogFixture(robot()).selectByPath(path) } else {