Compose API Reference Compose UI Test hasAnyAncestor Function Common fun hasAnyAncestor(matcher: SemanticsMatcher): SemanticsMatcher Returns whether the node has at least one ancestor that satisfies the given matcher. For the following tree |-X |-A |-B |-C1 |-C2 In case of C1, we would check the matcher against A and B
Compose API Reference Compose UI Test hasAnyAncestor Function Common fun hasAnyAncestor(matcher: SemanticsMatcher): SemanticsMatcher Returns whether the node has at least one ancestor that satisfies the given matcher. For the following tree |-X |-A |-B |-C1 |-C2 In case of C1, we would check the matcher against A and B