Created
June 16, 2016 00:13
-
-
Save fangpenlin/646b571b8896e9df44d3c4f8e23f7bbc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XCTest | |
import Embassy | |
import EnvoyAmbassador | |
class MyUITests: UITestBase { | |
func testUserList() { | |
router[DefaultRouter.fetchUsersPath] = DelayResponse(JSONResponse(handler: { _ in | |
return [ | |
["id": "01", "name": "John"], | |
["id": "02", "name": "Tom"] | |
] | |
})) | |
app.launch() | |
app.buttons["Show Users"].tap() | |
XCTAssert(app.staticTexts["John"].exists) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment