Skip to content

Commit

Permalink
Fixed issue testing TVShowActivity (#528)
Browse files Browse the repository at this point in the history
As we now use a nested scroll view the tests for TV shows all
failed because the scroll action was performed on a normal scroll
view only. This has simply been fixed by implementing a custom action
that also accepts a nested scroll view.
  • Loading branch information
poisdeux authored and SyncedSynapse committed Apr 6, 2018
1 parent 68b5586 commit ff67880
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void setActionBarTitleOnNextEpisode() {
@Test
public void setActionBarTitleOnSeasonList() {
EspressoTestUtils.clickAdapterViewItem(0, R.id.list);
onView( withId(R.id.seasons_list)).perform( nestedScrollTo(), click());
onView( withId(R.id.seasons_list)).perform(nestedScrollTo(), click());

onView(allOf(instanceOf(TextView.class), withParent(withId(R.id.default_toolbar))))
.check(matches(withText("Season 01")));
Expand Down

0 comments on commit ff67880

Please sign in to comment.