UITest the navigation to "out of app" environment
I'm currently making some UITests to my app and I would like to test the behaviour of a "iOS Settings" button I have which (off course) sends the user to the setting,
Is there a way to UITest this?
UI Testing cannot interact with anything outside of your application. In your scenario, the framework can no longer do anything once your app opens Settings.
To verify this, try printing out the app's hierarchy once Settings opens. You will notice that nothing in Settings nor the navigation bar will show up - you will only see your app's information.