You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Find a home for this. Ideally the same place that we share whatever idling resource cleverness that we've been hoarding.
/** * Base class for matchers that examine the workflow [Screen] [shown][View.getScreen] * by a [View].*/abstractclassWorkflowScreenMatcher : TypeSafeMatcher<View>() {
finaloverridefunmatchesSafely(item:View): Boolean {
return item.getScreen()?.let { matchesScreen(it) } ==true
}
protectedabstractfunmatchesScreen(rendering:Screen): Boolean
}
/** * Matches [View]s showing workflow [Screen]s that have [compatibility keys][Compatible.keyFor] * that include [string].*/funwithScreenWithKeyContaining(string:String): Matcher<View> {
return withScreenWithKey(containsString(string))
}
/** * Matches [View]s showing workflow [Screen]s that have [compatibility keys][Compatible.keyFor] * that match [stringMatcher].*/funwithScreenWithKey(stringMatcher:Matcher<String>): Matcher<View> {
returnWorkflowScreenWithKeyMatcher(stringMatcher)
}
privateclassWorkflowScreenWithKeyMatcher(
privatevalstringMatcher:Matcher<String>
) : WorkflowScreenMatcher() {
overridefundescribeTo(description:Description) {
description.appendText("with Screen with compatibility key: ")
stringMatcher.describeTo(description)
}
overridefunmatchesScreen(rendering:Screen): Boolean {
return stringMatcher.matches(Compatible.keyFor(rendering))
}
}
The text was updated successfully, but these errors were encountered:
I'd like to bring back the ability to peek at a View and see if/how workflow-ui created it, even though we no longer need that ability at runtime. I don't see how we can preserve our Radiography support without it, and it's also handy for espresso testing (#741).
I'd like to bring back the ability to peek at a View and see if/how workflow-ui created it, even though we no longer need that ability at runtime. I don't see how we can preserve our Radiography support without it, and it's also handy for espresso testing (#741).
I'd like to bring back the ability to peek at a View and see if/how workflow-ui created it, even though we no longer need that ability at runtime. I don't see how we can preserve our Radiography support without it, and it's also handy for espresso testing (#741).
Find a home for this. Ideally the same place that we share whatever idling resource cleverness that we've been hoarding.
The text was updated successfully, but these errors were encountered: