Last active
February 25, 2020 19:59
-
-
Save tieleman/657df3459f211f565625c96391712be1 to your computer and use it in GitHub Desktop.
SimpleGreeterUITests v1
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
import XCTest | |
class SimpleGreeterUITests: XCTestCase { | |
override func setUp() { | |
continueAfterFailure = false | |
} | |
func testInitialViewState() { | |
let app = XCUIApplication() | |
app.launch() | |
let textLabel = app.staticTexts.element | |
let textField = app.textFields.element | |
XCTAssert(textLabel.exists) | |
XCTAssertEqual(textLabel.label, "Please enter your name below") | |
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