The changes proposed in https://github.com/SchibstedSpain/Barista/pull/223 raised the discussion of just having simple methods for searching views by id and text, or having more combinations for special cases.
Allowing a third variant to search by any Matcher<View> would allow users to use their own custom rules for any special case.
For example:
clickOn(R.id.button)
clickOn("Button")
val customMatcher = allOf(withId(R.id.button), isEnabled()))
clickOn(customMatcher)
The changes proposed in https://github.com/SchibstedSpain/Barista/pull/223 raised the discussion of just having simple methods for searching views by id and text, or having more combinations for special cases.
Allowing a third variant to search by any
Matcher<View>
would allow users to use their own custom rules for any special case.For example:
This would apply to Interactions and Assertions.
Opinions?