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
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Currently, when adding espresso tests, aiming to cover BadgeUtils.attachBadgeDrawable there is no way to write fluent assertions on the badge produced by BadgeUtils
Describe the solution you'd like
A clear and concise description of what you want to happen.
I'd expect to have class similar to i.e. androidx.test.espresso.contrib.RecyclerViewActions which would expose convenient utilities to assert i.e. onView(fixtureView).check(matches(hasBadgeDrawable(contentDesritpion = "View updates")))
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I tried to set setContentDescriptionNumberless or setContentDescriptionQuantityStringsResource but there is no way to assert them using Espresso :/
I tried to write custom matcher accessing view#getOverlay but ViewOverlay's api seems to be too restricted
I tried to use reflection to read ViewOverlay's drawables but this obviously doesn't work on recent android versions
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Currently, when adding espresso tests, aiming to cover
BadgeUtils.attachBadgeDrawable
there is no way to write fluent assertions on the badge produced byBadgeUtils
Describe the solution you'd like
A clear and concise description of what you want to happen.
I'd expect to have class similar to i.e.
androidx.test.espresso.contrib.RecyclerViewActions
which would expose convenient utilities to assert i.e.onView(fixtureView).check(matches(hasBadgeDrawable(contentDesritpion = "View updates")))
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I tried to set
setContentDescriptionNumberless
orsetContentDescriptionQuantityStringsResource
but there is no way to assert them using Espresso :/I tried to write custom matcher accessing
view#getOverlay
but ViewOverlay's api seems to be too restrictedI tried to use reflection to read
ViewOverlay
's drawables but this obviously doesn't work on recent android versionsAdditional context
Add any other context or screenshots about the feature request here.
We also happily accept pull requests.
The text was updated successfully, but these errors were encountered: