Add theme flow test
This commit is contained in:
parent
18a51eb36c
commit
bc4455ce1b
1 changed files with 13 additions and 0 deletions
|
@ -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()))
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue