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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access