XCUITesting for permission popup: alert appears, but UIInterruptionMonitor does not fire
问题 I would like to write a test like so: When my app goes to a certain pane, it should request permission to use the camera. I want to test whether or not the pane appears. I am using XC's builtin UITest framework to do this. Per what I found on google and here, it seems like I should do the following: let dialogAppearedExpectation = expectationWithDescription("Camera Permission Dialog Appears") addUIInterruptionMonitorWithDescription("Camera Permission Alert") { (alert) -> Bool in