-
Notifications
You must be signed in to change notification settings - Fork 252
Open
Labels
enhancementNew feature or requestNew feature or requestneeds specificationThe desired behavior is not defined yetThe desired behavior is not defined yet
Description
Problem description
I want to test that my <input type="range">
calls the necessary function upon moving the slider thumb to a particular value. So far, it doesn't seem to be possible with the current capabilities of user-event
.
Suggested solution
Similarly to selectOptions
, I would like to have something like this:
await userEvent.setValueInRange(screen.getByRole('slider'), 50);
Other ideas for the name could be dragTo
, moveSliderTo
.
Additional context
No response
dios-david, seyhak, PeterCole-Which, thdk, screendriver and 32 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestneeds specificationThe desired behavior is not defined yetThe desired behavior is not defined yet