Fixed issue testing TVShowActivity (#528)

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.
This commit is contained in:
Martijn Brekhof 2018-04-06 20:13:14 +02:00 committed by Synced Synapse
parent 68b5586aed
commit ff67880999
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public class TVShowsActivityTests extends BaseMediaActivityTests<TVShowsActivity
@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")));