kakao / com.agoda.kakao.common.assertions / BaseAssertions
interface BaseAssertions
Base interface for asserting views
Provides basic assertions that can be performed on any view
See Also
com.agoda.kakao.text.TextViewAssertions
com.agoda.kakao.check.CheckableAssertions
com.agoda.kakao.pager.ViewPagerAssertions
com.agoda.kakao.image.ImageViewAssertions
Name | Summary |
---|---|
root | abstract var root: Matcher<Root> |
view | abstract val view: ViewInteractionDelegate |
Name | Summary |
---|---|
assert | open fun assert(function: () -> ViewAssertion): Unit Check the view with the given custom assertion |
doesNotExist | open fun doesNotExist(): Unit Checks if the matched view does not exist |
hasAnyTag | open fun hasAnyTag(vararg tags: String ): Unit Checks if the view has at least one of the given tags |
hasBackgroundColor | open fun hasBackgroundColor(resId: Int ): Unit open fun hasBackgroundColor(colorCode: String ): Unit Checks if the view has given background color |
hasDescendant | open fun hasDescendant(function: ViewBuilder .() -> Unit ): Unit Checks if the view has given descendant |
hasNotDescendant | open fun hasNotDescendant(function: ViewBuilder .() -> Unit ): Unit Checks if the view has not given descendant |
hasNotSibling | open fun hasNotSibling(function: ViewBuilder .() -> Unit ): Unit Checks if the view has not given sibling |
hasSibling | open fun hasSibling(function: ViewBuilder .() -> Unit ): Unit Checks if the view has given sibling |
hasTag | open fun hasTag(tag: String ): Unit Checks if the view has given tag |
inRoot | open fun inRoot(function: RootBuilder .() -> Unit ): Unit Check if the view is in given root |
isClickable | open fun isClickable(): Unit Checks if the view is clickable |
isCompletelyAbove | open fun isCompletelyAbove(function: ViewBuilder .() -> Unit ): Unit Checks if the view displayed is completely above of the view matching the given matcher. |
isCompletelyBelow | open fun isCompletelyBelow(function: ViewBuilder .() -> Unit ): Unit Checks if the view displayed is completely below of the view matching the given matcher. |
isCompletelyDisplayed | open fun isCompletelyDisplayed(): Unit Checks if the view is completely displayed |
isCompletelyLeftOf | open fun isCompletelyLeftOf(function: ViewBuilder .() -> Unit ): Unit Checks if the view displayed is completely right of the view matching the given matcher. |
isCompletelyRightOf | open fun isCompletelyRightOf(function: ViewBuilder .() -> Unit ): Unit Checks if the view displayed is completely right of the view matching the given matcher. |
isDisabled | open fun isDisabled(): Unit Checks if the view is disabled |
isDisplayed | open fun isDisplayed(): Unit Checks if the view is displayed |
isEnabled | open fun isEnabled(): Unit Checks if the view is enabled |
isFocusable | open fun isFocusable(): Unit Checks if the view is focusable |
isFocused | open fun isFocused(): Unit Checks if the view is focused |
isGone | open fun isGone(): Unit Checks if the view has GONE visibility |
isInvisible | open fun isInvisible(): Unit Checks if the view has INVISIBLE visibility |
isNotClickable | open fun isNotClickable(): Unit Checks if the view is not clickable |
isNotCompletelyDisplayed | open fun isNotCompletelyDisplayed(): Unit Checks if the view is not completely displayed |
isNotDisplayed | open fun isNotDisplayed(): Unit Checks if the view is not displayed |
isNotFocusable | open fun isNotFocusable(): Unit Checks if the view is not focusable |
isNotFocused | open fun isNotFocused(): Unit Checks if the view is not focused |
isNotSelected | open fun isNotSelected(): Unit Checks if the view is not selected |
isSelected | open fun isSelected(): Unit Checks if the view is selected |
isVisible | open fun isVisible(): Unit Checks if the view has VISIBLE visibility |
matches | open fun matches(function: ViewBuilder .() -> Unit ): Unit Check if the view matches given matcher |
notMatches | open fun notMatches(function: ViewBuilder .() -> Unit ): Unit Check if the view does not match given matcher |
Name | Summary |
---|---|
BottomNavigationViewAssertions | interface BottomNavigationViewAssertions : BaseAssertions Provides assertion for BottomNavigationview |
CheckableAssertions | interface CheckableAssertions : BaseAssertions Provides checkable based assertions for views |
ChipGroupAssertions | interface ChipGroupAssertions : BaseAssertions Provides assertions for a ChipGroup |
ImageViewAssertions | interface ImageViewAssertions : BaseAssertions Provides assertion for image views |
KAbsListView | class KAbsListView : ScrollViewActions , AbsListViewAdapterActions , BaseAssertions , AbsListViewAdapterAssertions View with ScrollViewActions and BaseAssertions. Gives access to it's children |
KAdapterItem | open class KAdapterItem<out T> : BaseActions , BaseAssertions , Interceptable <ViewInteraction, ViewAssertion, ViewAction> Base class for KAbsListView adapter items |
KBaseView | open class KBaseView<out T> : BaseActions , BaseAssertions , Interceptable <ViewInteraction, ViewAssertion, ViewAction> Base class for all Kakao views |
KRecyclerItem | open class KRecyclerItem<out T> : BaseActions , BaseAssertions , Interceptable <ViewInteraction, ViewAssertion, ViewAction> Base class for KRecyclerView adapter items |
KRecyclerView | class KRecyclerView : RecyclerActions , BaseAssertions , RecyclerAdapterAssertions View with RecyclerActions, BaseAssertions and RecyclerAdapterAssertions. Gives access to it's children |
KScrollView | class KScrollView : KBaseView < KScrollView >, ScrollViewActions , BaseAssertions View with ScrollViewActions and BaseAssertions |
KSpinner | class KSpinner : SpinnerAdapterActions , SpinnerAdapterAssertions , BaseAssertions |
KViewPager2 | class KViewPager2 : ViewPager2Actions , ViewPager2AdapterAssertions , SwipeableActions , BaseAssertions View with SwipeableActions and ViewPager2Assertions |
KViewPagerItem | open class KViewPagerItem<out T> : BaseActions , BaseAssertions , Interceptable <ViewInteraction, ViewAssertion, ViewAction> Base class for KViewPager2 adapter items |
NavigationViewAssertions | interface NavigationViewAssertions : BaseAssertions Provides assertions for NavigationView |
ProgressBarAssertions | interface ProgressBarAssertions : BaseAssertions Provides assertions for progress bar |
RatingBarAssertions | interface RatingBarAssertions : BaseAssertions Provides assertions for RatingBar |
SwipeRefreshLayoutAssertions | interface SwipeRefreshLayoutAssertions : BaseAssertions Provides assertion for SwipeRefreshLayout |
TabLayoutAssertions | interface TabLayoutAssertions : BaseAssertions Provides assertions for TabLayout |
TextInputLayoutAssertions | interface TextInputLayoutAssertions : BaseAssertions Provides assertions for TextInputLayout |
TextViewAssertions | interface TextViewAssertions : BaseAssertions Provides text based assertions for views |
ToolbarViewAssertions | interface ToolbarViewAssertions : BaseAssertions Provides assertion for Toolbar |
ViewPagerAssertions | interface ViewPagerAssertions : BaseAssertions Provides assertions for view pagers |