Skip to content

Commit

Permalink
Issue #574: Use correct selector in withChild (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
grassydragon authored Oct 9, 2023
1 parent ecfb4f4 commit 0fa58e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class UiViewBuilder {
* @param function ViewBuilder which will result in child matcher
*/
fun withChild(function: UiViewBuilder.() -> Unit) =
addSelector { hasDescendant(UiViewBuilder().apply(function).build().bySelector) }
addSelector { hasChild(UiViewBuilder().apply(function).build().bySelector) }

/**
* Matches the view which class matches given name
Expand Down

0 comments on commit 0fa58e6

Please sign in to comment.