From d4f0efa260b3f8d4a3b02b6e00a6097c845a7609 Mon Sep 17 00:00:00 2001 From: creatixchu Date: Fri, 6 Nov 2026 13:23:45 +0800 Subject: [PATCH] Exercise mouse delivery to the center of a scoped element --- packages/experimental/cua-macos/native/tests/e2e.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/experimental/cua-macos/native/tests/e2e.py b/packages/experimental/cua-macos/native/tests/e2e.py index 017a5dec75..e7e40f5c73 100644 --- a/packages/experimental/cua-macos/native/tests/e2e.py +++ b/packages/experimental/cua-macos/native/tests/e2e.py @@ -170,6 +170,8 @@ def main(): call(method, {**other_button, "windowId": primary["windowId"]}, "STALE_SNAPSHOT") call("click", target) wait_state(lambda state: state["count"] == 1, "primary click was not received exactly once") + call("click", {**target, "holdMs": 50}) + wait_state(lambda state: state["count"] == 2, "element-center mouse click did not reach the primary button") call("click", button_target(second, "Increment secondary")) wait_state(lambda state: state["secondaryCount"] == 1, "second window snapshot was invalidated by primary action") first = call("getState", primary_params)