Skip to content

Commit

Permalink
Update element queries for navigation bar buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
bcylin committed Sep 17, 2017
1 parent 58e4a55 commit d0f5622
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Example/UITests/UITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class UITests: XCTestCase {
private lazy var app: XCUIApplication = XCUIApplication()

private var cancelButton: XCUIElement {
return app.navigationBars["Camera Roll"].buttons["Cancel"]
return app.navigationBars.buttons["Cancel"]
}

private var doneButton: XCUIElement {
return app.navigationBars["Camera Roll"].buttons["Done"]
return app.navigationBars.buttons["Done"]
}

// MARK: -
Expand Down Expand Up @@ -101,7 +101,7 @@ class UITests: XCTestCase {
func testSwitchingAlbums() {
showImagePicker(named: "Default appearance")

app.navigationBars["Camera Roll"].staticTexts["Camera Roll"].tap()
app.navigationBars.staticTexts["Camera Roll"].tap()
app.tables.cells.staticTexts["Favorites"].tap()
XCTAssert(app.collectionViews.cells.count == 0)

Expand Down

0 comments on commit d0f5622

Please sign in to comment.