Clearing SFAuthenticationSession warning in XCUITest with addUIInterruptionMonitor ()

Has anyone successfully used addUIInterruptionMonitor to clear the alert generated by start() using the SFAuthenticationSession at the start of the XCUITest?

I cannot get it to work with Xcode 9.1 / iOS 11.1.1 (simulator or device). standard advice (setting up the handler and subsequent interaction with the device until a warning appears) does not help.

The test recorder says that app.alerts.firstMatch.buttons["Continue"]).tap() should do the trick, but that doesn't work either. This method from another SO answer works sometimes, but not sequentially on CI.

So, I would like to know if the β€œofficial” solution has ever worked for anyone.

+5
source share

Source: https://habr.com/ru/post/1273471/


All Articles