I've been having a hard time trying to dismiss UIAlertControllers in Earl Grey. I followed the example in this example, but I cannot dismiss the alerts by using grey_text. I'm using Swift to write the tests where I need to dismiss the alerts, and the app is written in Objective-C.
So how can I dismiss the alerts via the Earl Grey framework? I've also used grey_accessibilityLabel with no luck, and I can't add an accessibility ID to a UIAlertController, to my knowledge.