-
-
Save ferPrieto/efd4ebd55dfed1aef83854a90fa5682e to your computer and use it in GitHub Desktop.
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