Skip to content

Instantly share code, notes, and snippets.

@veena14cs
Created January 3, 2020 09:15
Show Gist options
  • Save veena14cs/5c12b5ed7db105bfcd238476a7fb8405 to your computer and use it in GitHub Desktop.
Save veena14cs/5c12b5ed7db105bfcd238476a7fb8405 to your computer and use it in GitHub Desktop.
Profile id is returning -1.
@Test
fun testHomeActivity_firstOpen_hasProfileName() {
profileManagementController.loginToProfile(ProfileId.newBuilder().setInternalId(0).build())
launch(HomeActivity::class.java).use {
onView(
atPositionOnView(
R.id.home_recycler_view,
0,
R.id.profile_name_textview
)
).check(matches(withText("Sean")))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment