-
Notifications
You must be signed in to change notification settings - Fork 254
Support the change event for <input type="range"> #871
Copy link
Copy link
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestneeds specificationThe desired behavior is not defined yetThe desired behavior is not defined yet