 import XCTest
 
 class MapViewControllerUITests: XCTestCase {
-        
+
+    let existsPredicate = NSPredicate(format: "exists == 1")
+
     override func setUp() {
         super.setUp()
 

    
    func testBasicUserFlow() {
        let app = XCUIApplication()

        app.buttons["Show Map"].tap()

        let searchField = app.navigationBars["Select Nearby Location"].searchFields["Search for place or address"]
        searchField.tap()


        app.buttons["Select address in callout view"].tap()

        self.expectationForPredicate(self.existsPredicate, evaluatedWithObject: presentButton, handler: nil)
        self.waitForExpectationsWithTimeout(2.0, handler: nil)
    }
    
}
