Skip to content

Instantly share code, notes, and snippets.

@thecb4
Created January 2, 2019 21:07
Show Gist options
  • Save thecb4/51c046c9c36d926ac2227d0762f3d01f to your computer and use it in GitHub Desktop.
Save thecb4/51c046c9c36d926ac2227d0762f3d01f to your computer and use it in GitHub Desktop.
testSelectThor
func testSelectThor() {
let movieTitle = "Thor"
let user = Scenario.user
let app = Scenario.app
user.login()
user.wait(5, for: [app.movieTable.existance])
user.swipeToShowSearch()
user.wait(10, for: [app.searchBar.existance])
user.search(for: movieTitle)
user.wait(10, for: [app.movie(titled: movieTitle).existance])
user.select(movieTitle)
user.wait(10, for: [app.comments(containing: "awesome").existance])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment