Skip to content

Commit

Permalink
Test album switching
Browse files Browse the repository at this point in the history
  • Loading branch information
bcylin committed Jul 12, 2017
1 parent 0bbeeb5 commit df97a65
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## Next Release

* UI tests [#10](https://github.com/carousell/pickle/pull/10)

## v1.0.0

* Initial release written in Swift 3.1
Expand Down
14 changes: 14 additions & 0 deletions Example/UITests/UITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,18 @@ class UITests: XCTestCase {
doneButton.tap()
}

func testSwitchingAlbums() {
showImagePicker(named: "Default appearance")

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

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

cancelButton.tap()
}

}

0 comments on commit df97a65

Please sign in to comment.