I'm writing XCTest app tests that test some UIViewControllers
by calling presentViewController
on the UIApplication
rootViewController
.
This works fine, except for permissions dialogs. Some of the UIViewControllers
make the system pop permissions dialogs for things like camera or microphone access. I'm not sure how to dismiss them.
If this were a UI test, I could use addUIInterruptionMonitorWithDescription
and tap
the alert away.
However, I'm not sure how to make this work. Can an app test access UI test features?