add minor changes

This commit is contained in:
siddharth2010 2018-08-04 19:48:22 +05:30 committed by Isaac Hutt
parent 7fd0fd18d4
commit 16de658216

View File

@ -95,17 +95,14 @@ public class HelpActivityTest {
// Verify that the home activity is opened // 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(withText("Wikipedia")));
// Open a zim file
onView(allOf(withId(R.id.recycler_view), childAtPosition(withId(R.id.get_content_card), 1))).perform(actionOnItemAtPosition(1, click())); onView(allOf(withId(R.id.recycler_view), childAtPosition(withId(R.id.get_content_card), 1))).perform(actionOnItemAtPosition(1, click()));
BaristaSleepInteractions.sleep(TEST_PAUSE_MS); BaristaSleepInteractions.sleep(TEST_PAUSE_MS);
// Open the help activity again
openActionBarOverflowOrOptionsMenu(context); openActionBarOverflowOrOptionsMenu(context);
onView(withText("Help")).perform(click()); onView(withText("Help")).perform(click());
BaristaSleepInteractions.sleep(TEST_PAUSE_MS); BaristaSleepInteractions.sleep(TEST_PAUSE_MS);
// Verify that the help Activity is opened
onView(withText("Help")).check(matches(notNullValue())); onView(withText("Help")).check(matches(notNullValue()));
// Verify that going back from the help screen we go back to the Zim file // Verify that going back from the help screen we go back to the Zim file