When my app is terminated, a warning is immediately presented to the users.
I want to write a UI test for this behavior.
I now have an XCUI application, I know I can terminate the app using terminate()
from XCTest.
After the XCUI application is terminated, a local notification should show up. Is there any way to access the notification and verify its existence and content?