Skip to content

Instantly share code, notes, and snippets.

@elihart
Created November 20, 2019 20:43
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 elihart/444ef14bafabafac10cf2730376b5858 to your computer and use it in GitHub Desktop.
Save elihart/444ef14bafabafac10cf2730376b5858 to your computer and use it in GitHub Desktop.
AirbnbIntegrationTestExamples
@Test
fun screenshotBookingFragment() = runScreenshots("com.airbnb.booking.BookingFragment")
@Test
fun screenshotSearchFragment() = runScreenshots("com.airbnb.search.SearchFragment")
fun runScreenshots(fragmentName: String) {
val intent = IntegrationTestActivity.intent<HappoTestActivity>(
context = InstrumentationRegistry.getInstrumentation().targetContext,
fragmentName = fragmentName
)
activityTestRule.launchActivity(intent)
Espresso.onIdle()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment