Created
February 26, 2020 10:48
-
-
Save tieleman/b63230b40203964a291065a706e06737 to your computer and use it in GitHub Desktop.
SimpleGreeterUITests.swift#testGreeter
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
func testGreeter() { | |
let app = XCUIApplication() | |
app.launch() | |
let textLabel = app.staticTexts["greetingTextLabel"] | |
let textField = app.textFields.element | |
textField.tap() | |
textField.typeText("J") | |
textField.typeText("o") | |
textField.typeText("n") | |
textField.typeText("y") | |
XCTAssertEqual(textLabel.label, "Nice to meet you, Jony.") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment