On Mon, 13 Apr 2026 14:21:30 GMT, Dmitry Markov <[email protected]> wrote:
> The root cause of the test failure is that the robot does not successfully > click on the "About" menu item. The test relies on hardcoded cursor > coordinates and the Y coordinate value (80) is insufficient on some macOS > systems with higher resolutions. > > Replace the mouse click on the "About" menu item with keyboard interactions. > This removes the dependency on hardcoded cursor positions and makes the test > more robust across systems with different resolutions and font sizes. > > --------- > - [X] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). tested on macOS 26.3.1 with two monitors. tests/system/src/test/java/test/robot/javafx/scene/SystemMenuBarHelpMenuTest.java line 114: > 112: Util.runAndWait(() -> { > 113: robot.keyType(KeyCode.DOWN); > 114: robot.keyType(KeyCode.ENTER); This is reasonable. I suppose the only scenario when the system menu is not focused is when the test must fail, which is exactly what we need. ------------- Marked as reviewed by angorya (Reviewer). PR Review: https://git.openjdk.org/jfx/pull/2147#pullrequestreview-4100023488 PR Review Comment: https://git.openjdk.org/jfx/pull/2147#discussion_r3074169405
