Skip to content

Commit

Permalink
Issue KasperskyLab#574: Use correct selector in withChild
Browse files Browse the repository at this point in the history
  • Loading branch information
grassydragon committed Sep 20, 2023
1 parent cf34c1a commit 8112833
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 8112833

Please sign in to comment.