I have implemented a custom response to the “Perform Escape” (two-finger Z) VoiceOver gesture for a modal view (via the accessibilityPerformEscape() -> Bool
method in my UIViewController
subclass). I’ve manually tested it on an iPhone device and it works as expected.
What I want to do now is add a test to my UI Tests suite to ensure that the behaviour continues to work, as changes are made to the project. (I.E., the whole point of UI testing.)
I have not been able to find any reference to automated testing of VoiceOver gestures for iOS UI testing (XCTest
, et. al.).
So: How can I automate testing of VoiceOver gestures?
Since it seems that this is not supported in the Simulator, am I going to have to always connect an iOS device to my development computer (and eventually CI server, when I set that up) in order to run VoiceOver UI tests?