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
I would like to test some functionality regarding Slider via instrumentation tests.
However, there are no ViewAssertions or ViewInteractions that specifically support slider values.
For assertions that's manageable since some custom assertions can be made.
For interactions though, to my understanding there is no way to change the slider values. I can obtain the slider instance and change value parameter to a new value. But this does not simulate the user's "click" on that value and therefore no actions (e.g. screen transitions) based on that click are triggered.
Expected behavior:
I would expect to be able to perform a click on a slider value via a provided api, something like this:
Description:
There is a Slider view included in the Material Design website: https://m3.material.io/components/sliders/overview
I would like to test some functionality regarding Slider via instrumentation tests.
However, there are no ViewAssertions or ViewInteractions that specifically support slider values.
For assertions that's manageable since some custom assertions can be made.
For interactions though, to my understanding there is no way to change the slider values. I can obtain the slider instance and change value parameter to a new value. But this does not simulate the user's "click" on that value and therefore no actions (e.g. screen transitions) based on that click are triggered.
Expected behavior:
I would expect to be able to perform a click on a slider value via a provided api, something like this:
Source code:
Minimal sample app repro:
Android API version:
Material Library version:
com.google.android.material:material:1.8.0
Device: Device on which the bug was encountered here
To help us triage faster, please check to make sure you are using the latest version of the library.
We also happily accept pull requests.
The text was updated successfully, but these errors were encountered: