[ui-tests]: add exception if the click was not successful in the end

GitOrigin-RevId: 60443ec4c17e571b6479d30b4a555407b456bc7c
This commit is contained in:
Anastasia Katsman
2024-06-28 17:48:37 +02:00
committed by intellij-monorepo-bot
parent a35909acb2
commit 271209076c

View File

@@ -144,6 +144,10 @@ internal class SmoothRobot : Robot {
component.removeMouseListener(mouseListener)
}
if (!finished) {
throw Exception("$attempt attempts failed to click on component $component.")
}
}
override fun click(component: Component, point: Point) {