This is how I simply create UIAlertController and present it on the screen:
UIAlertController
private class func showAlertWithTitle(title: String, message: String) {
Right now I have a UIAlertAction called addCamera and I'm just doing:
UIAlertAction
addCamera
addCamera.accessibilityLabel = "camera-autocomplete-action-photo"
That allows me to tap it in UI Tests as follows:
app.sheets.buttons["camera-autocomplete-action-photo"].firstMatch.tap()