Post not yet marked as solved
Post marked as unsolved with 0 replies, 1,084 views
I want to UI test my app with push notifications and maybe some of you have found a best practice. There are a lot tutorials and questions but I wasn't able to find a satisfying answer.
Start test
Send push notifcation
Tap push notifcation
Do stuff
But what would be the best practice to send the push notification from the UI Test?
Rest Call that triggers the push notification
Get access to the terminal (but how?) and run:
xcrun simctl push device com.example.my-app - ExamplePush.apns
Send local push notifications?
Mock Server
use a Framework like Mussel - https://github.com/UrbanCompass/Mussel
Thanks! :)
I asked the same question on StackOverflow - https://stackoverflow.com/questions/66349457/ios-best-practice-to-test-push-notifcations-ui-test