Skip to content

Commit

Permalink
Add UI test for initial UI state
Browse files Browse the repository at this point in the history
  • Loading branch information
graemer957 committed Nov 25, 2016
1 parent d3e4e4d commit e7029db
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions UI Testing-UITests/UI_Testing_UITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,14 @@ class UI_Testing_UITests: XCTestCase {
super.tearDown()
}


// MARK: - UI Tests
func testUIIsAsWeExpect() {
let application = XCUIApplication()

XCTAssert(application.activityIndicators.count == 0, "Spinner should not be present")
XCTAssertTrue(application.staticTexts["Unknown"].exists, "Could not find my label")
XCTAssertTrue(application.buttons["Do Something"].exists, "Could not find my button")
}

}

0 comments on commit e7029db

Please sign in to comment.