     }
     
     func testRoutineTwo(){
+        let app = XCUIApplication()
+        if app.navigationBars["DonateParkSpot.MapView"].exists {
+            testLogout(true)
+        }
         let email = randomStringWithLength(4) + "@" + randomStringWithLength(4) + ".com"
         let password = randomStringWithLength(6)
         testRegister(email, password: password)

        
    }
    
    func testBidOnSpot(test: Bool){
        
        let app = XCUIApplication()
        XCTAssertEqual(app.navigationBars["DonateParkSpot.MapView"].exists, true)
        app.otherElements["faelwar@gmail.com, UJr1Iay3YR"].tap()
        app.childrenMatchingType(.Window).elementBoundByIndex(0).childrenMatchingType(.Other).element.childrenMatchingType(.Other).element.childrenMatchingType(.Other).element.childrenMatchingType(.Other).element.childrenMatchingType(.Other).element.childrenMatchingType(.Other).element.childrenMatchingType(.Other).element.childrenMatchingType(.Other).elementBoundByIndex(2).childrenMatchingType(.Other).element.childrenMatchingType(.Other).elementBoundByIndex(0).childrenMatchingType(.Other).element.childrenMatchingType(.Other).elementBoundByIndex(1).childrenMatchingType(.Other).element.childrenMatchingType(.Other).elementBoundByIndex(1).childrenMatchingType(.Other).element.childrenMatchingType(.Button).element.tap()
        
        let incrementButton = app.steppers.buttons["Increment"]

        XCTAssertEqual(app.navigationBars["Add Spot Detail"].exists, true)
        let tablesQuery = app.tables
        tablesQuery.childrenMatchingType(.Cell).elementBoundByIndex(3).childrenMatchingType(.TextField).element.tap()
        app.datePickers.pickerWheels.elementAtIndex(0).swipeUp()
        tablesQuery.textFields["Minimum Donation"].tap()
        tablesQuery.childrenMatchingType(.Cell).elementBoundByIndex(4).childrenMatchingType(.TextField).element.typeText("5")
        app.navigationBars["Add Spot Detail"].buttons["Done"].tap()
