-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combine semantic matchers from all ancestor nodes #28
Combine semantic matchers from all ancestor nodes #28
Conversation
compose/src/main/kotlin/io/github/kakaocup/compose/node/core/BaseNode.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Happy to merge after all comments will be fixed
*/ | ||
private fun combineSemanticMatchers(): SemanticsMatcher { | ||
val semanticsMatcherList = mutableListOf<SemanticsMatcher>() | ||
var currentParent = this.parentNode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to have non-current parent? Just past or next parent. In general can be just a parent
semanticsMatcherList.add(this.nodeMatcher.matcher) | ||
|
||
return semanticsMatcherList.reduce { finalMatcher, matcher -> finalMatcher and matcher } | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does "NL" mean?
val navigationButton: KNode = child { | ||
hasTestTag("NavigateSecondScreenButton") | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NL
val sharedWidget: SharedWidgetNode = child { | ||
hasTestTag("SharedWidget") | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NL
val title: KNode = child { | ||
hasTestTag("SharedWidgetTitle") | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NL
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NL
private enum class NavigationScreen { | ||
First, | ||
Second | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NL
No description provided.