Skip to content

Instantly share code, notes, and snippets.

@igor-brishkoski
Last active January 14, 2019 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igor-brishkoski/e896422431b779afa1a550721e162267 to your computer and use it in GitHub Desktop.
Save igor-brishkoski/e896422431b779afa1a550721e162267 to your computer and use it in GitHub Desktop.
@RunWith(AndroidJUnit4::class)
class CreatePostActivityTest : BaseTest() {
@Rule
@JvmField
var activityTestRule = ActivityTestRule(CreatePostActivity::class.java)
@Test
fun createPost_WithText_Success() {
createPost {
enterPostText("Hello World!")
submitPost()
matchResultText(activityTestRule.getString(R.string.post_submitted))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment