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