fix travis build

This commit is contained in:
siddharth2010 2018-08-06 14:35:29 +05:30 committed by Isaac Hutt
parent 16de658216
commit 5d54ea4ca8

View File

@ -75,7 +75,7 @@ public class HelpActivityTest {
BaristaSleepInteractions.sleep(TEST_PAUSE_MS);
// Verify that the home screen is open
onView(childAtPosition(withId(R.id.toolbar), 0)).check(matches(withText("Wikipedia")));
onView(childAtPosition(withId(R.id.toolbar), 0)).check(matches(notNullValue()));
// Open the Help screen
openActionBarOverflowOrOptionsMenu(context);
@ -93,7 +93,7 @@ public class HelpActivityTest {
BaristaSleepInteractions.sleep(TEST_PAUSE_MS);
// Verify that the home activity is opened
onView(childAtPosition(withId(R.id.toolbar), 0)).check(matches(withText("Wikipedia")));
onView(childAtPosition(withId(R.id.toolbar), 0)).check(matches(notNullValue()));
// Open a zim file
onView(allOf(withId(R.id.recycler_view), childAtPosition(withId(R.id.get_content_card), 1))).perform(actionOnItemAtPosition(1, click()));
@ -108,7 +108,7 @@ public class HelpActivityTest {
// Verify that going back from the help screen we go back to the Zim file
onView(withContentDescription("Navigate up")).perform(click());
BaristaSleepInteractions.sleep(TEST_PAUSE_MS);
onView(childAtPosition(withId(R.id.toolbar), 0)).check(matches(withText("Wikipedia")));
onView(childAtPosition(withId(R.id.toolbar), 0)).check(matches(notNullValue()));
// Open the Help screen again
openActionBarOverflowOrOptionsMenu(context);