Created
August 24, 2017 21:01
-
-
Save tovkal/8a9f547a388bcadb909ec6d8679af099 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
class UITests: XCTestCase { | |
let app = XCUIApplication() | |
let dynamicStubs = HTTPDynamicStubs() | |
override func setUp() { | |
super.setUp() | |
dynamicStubs.setUp() | |
} | |
override func tearDown() { | |
super.tearDown() | |
dynamicStubs.tearDown() | |
} | |
func testPostCreation() { | |
... | |
// Dynamically change the response to see if the feed gets refreshed and post is there | |
dynamicStubs.setupStub(url: "/api/feed", filename: "feedWithCreatedPost") | |
app.buttons["createPostButton"].tap() | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment