Has anybody successfully used addUIInterruptionMonitor
to clear the alert produced by start()
ing an SFAuthenticationSession
while running an XCUITest?
I can't get it to work on Xcode 9.1/iOS 11.1.1 (simulator or device). The standard advice (setting up the handler and subsequently interacting with the device before the alert appears) does not help.
The test recorder says app.alerts.firstMatch.buttons["Continue"]).tap()
should do the trick, but that doesn't work either. This technique from another SO answer works sometimes, but not consistently on CI.
So I'd like to know if the "official" solution has ever worked for anyone.