User notifications not firing in test


#1

I have some tests which cause a user notification to fire, and the test checks that the notification exists. These tests work on my development machine, but on CircleCI I can’t get the body of the notification. Is there any reason that notifications wouldn’t work in general on CircleCI? If it should work, then what can I do to debug my problematic test?


#2

I think I understand why this doesn’t work on circleCI. The simulators on my personal machine have been approved to post user notifications (because I’ve run my app in them in the past), while the circleCI simulators have not. This is one of those things that is impossible to do programmatically, so I think I’m stuck. I’ll have to mock out the notification posting. Unless I’m missing something?


#3