[gui-test] fix webstorm tests on linux

This commit is contained in:
Vladislav Shishov
2019-02-06 23:57:31 +03:00
parent a3428ed708
commit 03d4ace76b
@@ -98,6 +98,7 @@ class MenuFixture internal constructor(private val myRobot: Robot, private val m
private fun menuItemMatcher(pathIsRegex: Boolean,
segment: String): GenericTypeMatcher<JMenuItem> {
return typeMatcher(JMenuItem::class.java) {
it.width != 0 && it.height != 0 &&
if (pathIsRegex) it.text.matches(segment.toRegex())
else segment == it.text
}