Skip to content

Instantly share code, notes, and snippets.

@tieleman
Last active February 25, 2020 19:59
Show Gist options
  • Save tieleman/657df3459f211f565625c96391712be1 to your computer and use it in GitHub Desktop.
Save tieleman/657df3459f211f565625c96391712be1 to your computer and use it in GitHub Desktop.
SimpleGreeterUITests v1
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