mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Split test
This commit is contained in:
@@ -182,20 +182,19 @@ public class MainTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSettingsAndAbout()
|
public void testSettings()
|
||||||
{
|
{
|
||||||
Context context = InstrumentationRegistry.getContext();
|
Context context = InstrumentationRegistry.getContext();
|
||||||
|
|
||||||
openActionBarOverflowOrOptionsMenu(context);
|
openActionBarOverflowOrOptionsMenu(context);
|
||||||
onView(withText(R.string.settings))
|
onView(withText(R.string.settings)).perform(click());
|
||||||
.perform(click());
|
}
|
||||||
pressBack();
|
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testAbout()
|
||||||
|
{
|
||||||
|
Context context = InstrumentationRegistry.getContext();
|
||||||
openActionBarOverflowOrOptionsMenu(context);
|
openActionBarOverflowOrOptionsMenu(context);
|
||||||
onView(withText(R.string.about))
|
onView(withText(R.string.about)).perform(click());
|
||||||
.perform(click());
|
onView(isRoot()).perform(swipeUp());
|
||||||
onView(isRoot())
|
|
||||||
.perform(swipeUp());
|
|
||||||
pressBack();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user