Skip to content

Instantly share code, notes, and snippets.

@guigarage
Last active August 29, 2015 14:06
Show Gist options
  • Save guigarage/1344280c2b5d52e1022e to your computer and use it in GitHub Desktop.
Save guigarage/1344280c2b5d52e1022e to your computer and use it in GitHub Desktop.
Test by using DialogObjects
@Test
public void checkSearchResult() {
new SearchView(this).search("Rise Against").assertContainsAlbum("The Black Market");
}
@Test
public void checkTrackCount() {
new SearchView(this).search("Rise Against").openAlbum("The Black Market").checkTrackCountOfSelectedAlbum(12);
}
@Test
public void checkPlayWorkflow() {
new SearchView(this).search("Rise Against").openAlbum("The Black Market").play(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment