RFR: 8303130: Document required Accessibility permissions on macOS [v2]

Dmitry Markov dmarkov at openjdk.org
Tue Feb 28 11:03:42 UTC 2023


On Mon, 27 Feb 2023 18:49:15 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Dmitry Markov has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix review findings
>
> doc/testing.md line 616:
> 
>> 614: system key shortcuts for various platforms are provided below.
>> 615: 
>> 616: ##### MacOS
> 
> Suggestion:
> 
> ##### macOS
> 
> Shall we spell _macOS_ with lower-case ‘m’ like Apple does?

Done

> doc/testing.md line 648:
> 
>> 646: the default operating system settings need to be adjusted for correct work of
>> 647: Robot functionality. The detailed steps how to access and update that settings
>> 648: for different platforms are provided below.
> 
> Suggestion:
> 
> Most automated Client UI tests use `Robot` API to control the UI. Usually,
> the default operating system settings need to be adjusted for Robot
> to work correctly. The detailed steps how to access and update these settings
> for different platforms are provided below.

Fixed

> doc/testing.md line 656:
> 
>> 654: Privacy & Security; select Accessibility and ensure the following apps are
>> 655: allowed to control your computer: `Java` and `Terminal`. If the tests are run
>> 656: from an IDE, the IDE should be granted this permission too.
> 
> Suggestion:
> 
> `Robot` is not permitted to control your Mac by default since
> macOS 10.15. To enable it, choose Apple menu > System Settings, click
> Privacy & Security, then click Accessibility and ensure the following apps are
> allowed to control your computer: *Java* and *Terminal*. If the tests are run
> from an IDE, the IDE should be granted this permission too.
> 
> I amended the instructions align with [Allow accessibility apps to access your Mac](https://support.apple.com/en-gb/guide/mac-help/mh43185/mac).
> 
> Perhaps, “to allow it” is better than “to enable it”. Also unsure about “`Robot` is not *allowed* to control…” instead of “permitted”.
> 
> *Java* and *Terminal* are the names of apps, not part of a command-line, therefore they're shouldn't be rendered in monospace font; using italics suits better to separate the names from regular text (even though it's not required).

Fixed

> doc/testing.md line 664:
> 
>> 662: select Registry Editor; navigate to the following key:
>> 663: `HKEY_CURRENT_USER\Control Panel\Desktop\ForegroundLockTimeout`; make sure
>> 664: its value is set to 0.
> 
> Suggestion:
> 
> On Windows there is a delay in focus transfer. Usually it causes automated
> UI test failure. To disable the delay, type `regedit` in the Search and then
> select Registry Editor; navigate to the following key:
> `HKEY_CURRENT_USER\Control Panel\Desktop`; make sure
> the `ForegroundLockTimeout` value is set to 0.

Fixed

-------------

PR: https://git.openjdk.org/jdk/pull/12772



More information about the client-libs-dev mailing list