Created
November 20, 2019 20:43
-
-
Save elihart/444ef14bafabafac10cf2730376b5858 to your computer and use it in GitHub Desktop.
AirbnbIntegrationTestExamples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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