Add Control test to androidTest

This commit is contained in:
Lucas Lima 2020-06-28 12:29:42 -03:00
parent cd73a834d2
commit ec3330af19
No known key found for this signature in database
GPG key ID: 0259A3F43EC1027A

View file

@ -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))