Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active July 10, 2022 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/25b662970d1beff939598fae2050e3e2 to your computer and use it in GitHub Desktop.
Save laevandus/25b662970d1beff939598fae2050e3e2 to your computer and use it in GitHub Desktop.
class UITestingNetworkingUITests: XCTestCase {
override func setUpWithError() throws {
continueAfterFailure = false
}
func testExample() throws {
let app = XCUIApplication()
app.launchArguments = ["--uitesting"]
app.launch()
app.buttons["Load Data"].tap()
XCTAssertEqual(app.staticTexts.element.label, "MyMockedData")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment