hasAnyMatchingComponent

Asserts that the LithoView contains a Component satisfying the given condition at any level of the hierarchy


fun <T1, T2> hasAnyMatchingComponent(kClass: KClass<out Component>, vararg propsValuePairs: Pair<KProperty1<T2, T1>, T1>): LithoViewAssert

Asserts that the LithoView contains a Component with given props at any level of the hierarchy. This function uses DFS algorithm to go through the whole component tree

Parameters

kClass

class of a component

propsValuePairs

Pairs of props and their expected values