mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
add minor changes
This commit is contained in:
parent
7fd0fd18d4
commit
16de658216
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user