Add theme flow test

This commit is contained in:
Lucas Lima 2020-08-12 15:38:09 -03:00
parent 18a51eb36c
commit bc4455ce1b
No known key found for this signature in database
GPG key ID: 049CCC5A365B00D2

View file

@ -160,4 +160,17 @@ class GameFlowTests {
onView(isRoot()).perform(ViewActions.pressBack())
}
@Test
fun testGoToThemes() {
onView(withId(R.id.drawer))
.check(matches(isClosed(Gravity.START)))
.perform(DrawerActions.open())
onView(withId(R.id.navigationView))
.perform(NavigationViewActions.navigateTo(R.id.themes))
onView(withText(R.string.themes)).check(matches(isDisplayed()))
}
}