[jupyter-ui-tests] Add test for drag and drop

GitOrigin-RevId: df97d25d71ed52aea1b4fff42242e2791216e3f9
This commit is contained in:
Ilya Misiukevich
2025-10-02 15:12:41 +00:00
committed by intellij-monorepo-bot
parent e1e58bdd81
commit 097b9cef61
4 changed files with 30 additions and 0 deletions
@@ -375,6 +375,17 @@ internal class SmoothRobot @JvmOverloads constructor(
}
}
fun moveMouseAndPress(component: Component, where: Point?) {
if (where != null) {
moveMouse(component, where)
}
else {
moveMouse(component)
}
ApplicationManager.getApplication().invokeAndWait({}, ModalityState.any())
basicRobot.pressMouse(MouseButton.LEFT_BUTTON)
}
private fun moveMouseWithAttempts(c: Component, x: Int, y: Int, attempts: Int = 3) {
waitFor(Duration.ofSeconds(5), Duration.ofSeconds(1)) { performOnEdt { c.isShowing }!! }