Skip to content

Instantly share code, notes, and snippets.

@cdmunoz
Created October 22, 2019 02:35
Show Gist options
  • Save cdmunoz/0f147894595729310f2c9638f9f0591d to your computer and use it in GitHub Desktop.
Save cdmunoz/0f147894595729310f2c9638f9f0591d to your computer and use it in GitHub Desktop.
@Test
fun auctionPhotos_CreationCameraClickUI() {
val imgCaptureResult = CameraAndGallery.createImageCaptureActivityResultStub(mActivityTestRule.activity)
intending(hasAction(MediaStore.ACTION_IMAGE_CAPTURE)).respondWith(imgCaptureResult)
auctionPhotos_CreationInitialUI()
onView(withId(R.id.auctionphotos_button_camera)).perform(click())
onView(withId(R.id.auctionphotos_bigimage_viewer)).check(matches(hasImageSet()))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment