Created
January 26, 2020 15:08
-
-
Save testableapple/e11cd87703fbfaaba52a336f439739aa to your computer and use it in GitHub Desktop.
This file contains hidden or 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 sample() { | |
recyclerViewCounter(R.id.recyclerViewId) { | |
val fab = withId(R.id.fab) | |
val firstFabPosition = getFirstMatchingPosition(fab) | |
onView(getView(firstFabPosition)).perform(click()) | |
val lastFabPosition = getLastMatchingPosition(fab) | |
onView(getView(lastFabPosition)).perform(click()) | |
val actualFabCount = getCount(fab) | |
assertEquals(3, actualFabCount) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment