Im having an issue on how to refer to this view / "Allow with passcode" button while UI testing Im trying to UI test our setup procedure and ScreenTime is a part of that process so I need this approval before I go to my next VC
let stHandler = addUIInterruptionMonitor(withDescription: "“Allow Access to Screen Time")
{ (alert)
or
let stHandler = addUIInterruptionMonitor(withDescription: "“Allow Access to Screen Time")
{ (group)
dont work
Anyone any ideas? Thanks in advance
If this is an unexpected interruption that is blocking your test from running, you can handle it using addUIInterruptionMonitor
and print the debugDescription of group
to see what elements are available in that interruption.
If you want to handle as a part of your UI test workflow, you can interact with the popup and see what elements are interact-able using XCUIApplication().debugDescription