Package-level declarations

Functions

Link copied to clipboard

Check if the activity of type A has been launched.

Link copied to clipboard

Check if the background drawable associated with resourceId is displayed.

Link copied to clipboard

Check if a dialog with buttonTextResId as the button 1 label is displayed.

Link copied to clipboard

Check if a dialog with buttonTextResId as the button 2 label is displayed.

Link copied to clipboard

Check if a dialog with buttonTextResId as the button 3 label is displayed.

Link copied to clipboard

Check if a dialog with the title of a string associated with titleResId is displayed.

Check if a dialog with the title expected is displayed.

Link copied to clipboard

Check if the drawable associated with resourceId is displayed.

Link copied to clipboard

Check if the drawer associated with drawerId is closed.

Link copied to clipboard

Check if the drawer associated with drawerId is opened.

Link copied to clipboard

Check if the foreground drawable associated with resourceId is displayed.

Link copied to clipboard
inline fun <F : Fragment> RobotAssertions.fragmentDisplayed(@IdRes navHostViewId: Int)

Check if the fragment of type F with a navigation host associated with navHostViewId is displayed.

Check if the fragment of type F with tag is displayed.

Link copied to clipboard

Check if the edit text associated with viewId has an email input type.

Link copied to clipboard
fun RobotAssertions.navigationBarViewItemSelected(@IdRes navigationBarViewResId: Int, @IdRes selectedItemResId: Int)

Check if the navigation bar view associated with navigationBarViewResId has selectedItemResId as the selected item.

Link copied to clipboard

Check if no activity is currently displayed

Link copied to clipboard
fun RobotAssertions.radioButtonSelected(@IdRes radioGroupId: Int, buttonText: String)

Check if the radio group associated with radioGroupId has the button with buttonText selected.

Link copied to clipboard

Check if the radio group associated with radioGroupId has NO selection.

Link copied to clipboard

Check if the radio group associated with radioGroupId has some selections.

Link copied to clipboard
fun RobotAssertions.radioGroupHasText(@IdRes radioGroupId: Int, vararg buttonTexts: String)

Check if the radio group associated with radioGroupId has buttonTexts as the labels of the radio buttons.

Link copied to clipboard
fun RobotAssertions.recyclerViewHasSize(@IdRes recyclerViewId: Int, size: Int)

Check if the recycler view associated with recyclerViewId has the size of size.

Link copied to clipboard

Check if a snackbar with text as message is displayed.

Link copied to clipboard

Check if all texts are displayed.

fun RobotAssertions.textDisplayed(@StringRes vararg textResIds: Int)

Check if all texts associated with textResIds are displayed.

Link copied to clipboard
fun RobotAssertions.textInputLayoutHasError(@IdRes viewId: Int, @StringRes errorMessageResId: Int)

Check if text input layout associated with viewId has string associated with errorMessageResId as the error.

Check if text input layout associated with viewId has errorMessage as the error.

Link copied to clipboard

Check if the text input layout associated with viewId has NO error.

Link copied to clipboard

Check if none of texts is displayed.

fun RobotAssertions.textNotDisplayed(@StringRes vararg textResIds: Int)

Check if no views associated with textResIds is displayed.

Link copied to clipboard

Check if the current Toolbar has a subtitle of a string associated with subtitleTextResId.

Check if the current Toolbar has a subtitle of subtitle.

Link copied to clipboard

Check if the current Toolbar has a title of a string associated with titleTextResId.

Check if the current Toolbar has a title of title.

Link copied to clipboard

Check if the checkable view associated with viewId is checked.

Link copied to clipboard

Check if the view associated with viewId is clickable.

Link copied to clipboard
fun RobotAssertions.viewContainsText(@IdRes viewId: Int, expected: String)

Check if the view associated with viewId has text that contains the expected string.

Link copied to clipboard

Check if the view associated with viewId is disabled.

Link copied to clipboard
fun RobotAssertions.viewDisplayed(@IdRes vararg viewIds: Int)

Check if all views associated with viewIds are displayed.

Link copied to clipboard

Check if the view associated with viewId is enabled.

Link copied to clipboard
fun RobotAssertions.viewEndsWithText(@IdRes viewId: Int, expected: String)

Check if the view associated with viewId has text that ends with the expected string.

Link copied to clipboard
fun RobotAssertions.viewHasHint(@IdRes viewId: Int, @StringRes messageResId: Int)

Check if the view associated with viewId has a hint that equals to the string associated with messageResId.

Link copied to clipboard
fun RobotAssertions.viewHasText(@IdRes viewId: Int, @StringRes messageResId: Int)

Check if the view associated with viewId has string associated with messageResId text.

fun RobotAssertions.viewHasText(@IdRes viewId: Int, expected: String)

Check if the view associated with viewId has expected text.

Link copied to clipboard

Check if the checkable view associated with viewId is NOT checked.

Link copied to clipboard

Check if the view associated with viewId is NOT clickable.

Link copied to clipboard
fun RobotAssertions.viewNotDisplayed(@IdRes vararg viewIds: Int)

Check if all views associated with viewIds are NOT displayed.

Link copied to clipboard
fun RobotAssertions.viewNotExists(@IdRes vararg viewIds: Int)

Check if all views associated with viewIds are not present in the view hierarchy.

Link copied to clipboard

Check if the view associated with viewId has text that starts with the expected string.