From 03d4ace76b0faa001f06abde3cee8997b956605a Mon Sep 17 00:00:00 2001 From: Vladislav Shishov Date: Wed, 6 Feb 2019 19:58:12 +0300 Subject: [PATCH] [gui-test] fix webstorm tests on linux --- .../src/com/intellij/testGuiFramework/fixtures/MenuFixture.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/MenuFixture.kt b/platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/MenuFixture.kt index 414f5c57aad3..5b19b590cd38 100644 --- a/platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/MenuFixture.kt +++ b/platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/MenuFixture.kt @@ -98,6 +98,7 @@ class MenuFixture internal constructor(private val myRobot: Robot, private val m private fun menuItemMatcher(pathIsRegex: Boolean, segment: String): GenericTypeMatcher { return typeMatcher(JMenuItem::class.java) { + it.width != 0 && it.height != 0 && if (pathIsRegex) it.text.matches(segment.toRegex()) else segment == it.text }