Quantcast
Viewing all articles
Browse latest Browse all 17065

Close a SafariViewController from Detox UI tests

From my React-Native app, I'm opening a SafariViewController. I cannot find any way to close it and go back to my app using Detox.

I've tried to search for the "Close" button, and to use tap() with coordinates but because this seems to be a different activity, it just doesn't work.

I'm wondering if there is any way to actually go back using Detox?

I'd rather not mock this completely for the purpose of the test which wouldn't really make sense..

Thanks!

Image may be NSFW.
Clik here to view.
enter image description here


Viewing all articles
Browse latest Browse all 17065

Trending Articles