Chapter 5Maps, Gestures, and Alerts

NearbyMe makes heavy use of Apple’s Map Kit framework to provide the map view that the user manipulates, and we should assume it works as described. However, we don’t want to distract ourselves by testing the implementation of Map Kit; we want to test how we interact with it in our code.

We’re going to write two more tests for our test suite, covering the most common uses. First, we want to make sure that tapping a search term will execute a geographical query and actually show pins representing points of interest on the map. Second, we want to test what users see if they move and refresh the map but there are no results. The pins should be removed and users should see an alert letting them know that there’s ...

Get Test iOS Apps with UI Automation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.