Last active
February 26, 2020 11:40
-
-
Save tieleman/2eb640fd4a864d12e74ca2b3c2d70431 to your computer and use it in GitHub Desktop.
SimpleGreeterUITests.swift#testInitialViewState
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 testInitialViewState() { | |
let app = XCUIApplication() | |
app.launch() | |
let textField = app.textFields.element | |
let enterNameLabel = app.staticTexts["enterNameLabel"] | |
let greeterLabel = app.staticTexts["greetingTextLabel"] | |
XCTAssert(enterNameLabel.exists) | |
XCTAssertEqual(enterNameLabel.label, "Please enter your name below") | |
XCTAssert(greeterLabel.exists) | |
XCTAssert(greeterLabel.label.isEmpty) | |
XCTAssert(textField.exists) | |
XCTAssertEqual(textField.placeholderValue, "Your name") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment