Skip to content

Instantly share code, notes, and snippets.

@cipolleschi
Created August 2, 2020 10:16
Show Gist options
  • Select an option

  • Save cipolleschi/26ee2aed7a31387749acbf804137c607 to your computer and use it in GitHub Desktop.

Select an option

Save cipolleschi/26ee2aed7a31387749acbf804137c607 to your computer and use it in GitHub Desktop.
func testExample() throws {
// UI tests must launch the application that they test.
let app = XCUIApplication()
app.launch()
// Use recording to get started writing UI tests.
// Use XCTAssert and related functions to verify your tests produce the correct results.
// XCODE STARTS WRITING HERE:👇
let app = XCUIApplication()
app.staticTexts["Tap to accept TOS"].tap()
app.staticTexts["Tap to Accept Privacy Policy"].tap()
app.staticTexts["Continue"].tap()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment