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). Technically, we could use an osascript like in the manual test MacOSSystemenuTestBase (see `getMenuReaderProcess`) to find the About position. But then the whole test, which was added to verify that the spotlight field was inserted when a "Help" menu was added to the system menu bar, could be solved just with this script. So this test should probably be indeed moved to a manual test, with the sole purpose of visually confirming that the Spotlight is added under a "Help" menu, and optionally, use the osascript to verify it. Keeping it as a system test with the changes from this PR will always pass, so I don't see that much value for the test. ------------- PR Comment: https://git.openjdk.org/jfx/pull/2147#issuecomment-4248026129
