[gui-test] plugin path selection fix

This commit is contained in:
Artem Gainanov
2017-12-21 23:45:58 +07:00
parent ec5440bbdd
commit 0babfe26af
@@ -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 {