/LaunchesScreenRobot.kt Secret
Created
January 11, 2022 20:38
Star
You must be signed in to star a gist
This shows the functions that implement the test assertions
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
fun clickOnLaunchesTab() = launchesTabItem.assertIsDisplayed().performClick() | |
fun initialElementsShowed() { | |
launchesTitle.assertIsDisplayed() | |
dialogFilterButton.assertIsDisplayed() | |
} | |
fun listItemsShowed(numItemsShowed: Int) = launchesListItems.assertCountEquals(numItemsShowed) | |
fun advanceTimeBy(timeToAdvance: Long) = composeTestRule.mainClock.advanceTimeBy(timeToAdvance) | |
fun errorElementsDisplayed() { | |
connectionErrorMessage.assertExists().assertIsDisplayed() | |
connectionErrorAnimation.assertExists().assertIsDisplayed() | |
} | |
fun noResultsElementsShowed() { | |
noResultsText.assertExists().assertIsDisplayed() | |
listItemsShowed(0) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment