From 16de658216b3c02410f7ea2dc0045019e82d333a Mon Sep 17 00:00:00 2001 From: siddharth2010 Date: Sat, 4 Aug 2018 19:48:22 +0530 Subject: [PATCH] add minor changes --- .../java/org/kiwix/kiwixmobile/help/HelpActivityTest.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/help/HelpActivityTest.java b/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/help/HelpActivityTest.java index c06f49637..b9bc99696 100644 --- a/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/help/HelpActivityTest.java +++ b/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/help/HelpActivityTest.java @@ -95,17 +95,14 @@ public class HelpActivityTest { // Verify that the home activity is opened 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())); - - BaristaSleepInteractions.sleep(TEST_PAUSE_MS); + // Open the help activity again openActionBarOverflowOrOptionsMenu(context); onView(withText("Help")).perform(click()); - BaristaSleepInteractions.sleep(TEST_PAUSE_MS); - - // Verify that the help Activity is opened onView(withText("Help")).check(matches(notNullValue())); // Verify that going back from the help screen we go back to the Zim file