has Direct Matching Component
Asserts that the LithoView will render Component as a direct children of the root satisfying the given condition.
example:
FBStory -> Story -> Column
-- StoryDescription -> Column
---- Text
-- Text
-- Comments -> Column
---- Text
---- Text
Content copied to clipboard
open fun <T1, T2> hasDirectMatchingComponent(kClass: KClass, propsValuePairs: Array<Pair<KProperty1<T2, T1>, T1>>): LithoViewAssert
Asserts that the LithoView contains a direct Component with given props
Parameters
k Class
class of a component
props Value Pairs
Pairs of props and their expected values