This issue is related to not giving permission for terminal to control things in System Preferences -> Security & privacy -> Privacy -> Accessibility.
I have verified the test in our CI and removed it from problemlist. There are small tweaks in test also. ------------- Commit messages: - 8233561: [TESTBUG] Swing text test bug8014863.java fails on macos Changes: https://git.openjdk.java.net/jdk/pull/1027/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1027&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8233561 Stats: 4 lines in 2 files changed: 1 ins; 1 del; 2 mod Patch: https://git.openjdk.java.net/jdk/pull/1027.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/1027/head:pull/1027 PR: https://git.openjdk.java.net/jdk/pull/1027