Regression with XCUIElement typeKey:modifierFlags:?

Hello,


as part of our release process, our macOS app undergoes a series of automated UI tests. Few of those tests started failing right after we updated our build infrastructure to Xcode 10 (with related frameworks updates).


Upon further tests of our tests, we've narrowed the problem here:


    [testWindow typeKey:XCUIKeyboardKeyLeftArrow
          modifierFlags:(XCUIKeyModifierCommand | XCUIKeyModifierAlternate)];


It seems that the "left arrow" typeKey has some sort of issue. That also triggers a funk sound from macOS.

The problem seems to be common to all the arrow keys.


And yeah, that snipped worked perfectly in 10.13.

Any clue?