Swift UI Test - User Notifications System Alert
问题 I'm trying to get past the User Notification system alert by following the flow presented in the follow post, which is the same flow mentioned in the UI testing cheat sheet and a few other posts on SO. Xcode7 | Xcode UI Tests | How to handle location service alert? I'm having a strange problem where I can't hit the OK button. Here is my code addUIInterruptionMonitorWithDescription("User Notifications") { (alert) -> Bool in let okButton = alert.buttons["OK"] let dontAllowButton = alert.buttons