Add Control test to androidTest
This commit is contained in:
parent
cd73a834d2
commit
ec3330af19
1 changed files with 15 additions and 0 deletions
|
@ -96,6 +96,21 @@ class GameFlowTests {
|
|||
assert(activityRule.activity.findViewById<RecyclerView>(R.id.recyclerGrid).adapter?.itemCount == 12 * 8)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testGoToControl() {
|
||||
onView(withId(R.id.drawer))
|
||||
.check(matches(isClosed(Gravity.START)))
|
||||
.perform(DrawerActions.open())
|
||||
|
||||
onView(withId(R.id.navigationView))
|
||||
.perform(NavigationViewActions.navigateTo(R.id.control))
|
||||
|
||||
onView(withText(R.string.standard)).perform(click())
|
||||
onView(withText(R.string.flag_first)).perform(click())
|
||||
|
||||
onView(withText(R.string.ok)).perform(click())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testGoToPreviousGames() {
|
||||
onView(withId(R.id.drawer))
|
||||
|
|
Loading…
Reference in a new issue