-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels
pkg/driverThis is due to an issue in the packages/driver directoryThis is due to an issue in the packages/driver directoryprevent-stalemark an issue so it is ignored by stale[bot]mark an issue so it is ignored by stale[bot]type: bug
Description
Current behavior:
...
return (
...
<div className="search-bar__form-range">
<input type="range" min={10} max={900} step={10} value={500} onChange={(event)=>alert(`slider changed
to:${event.target.value}`)}
/>
...cy.get('.search-bar__form-range > input[type=range]').as('range').invoke('val', 700)
.trigger('change');Changes the slider value.
Doesn't trigger the onChange handler.
Desired behavior:
should trigger the onChange handler
Steps to reproduce:
Set up a React app with an input type='range' and an onChange handler
Try to trigger the onChange event from cypress.
Versions
"cypress": "^2.1.0"
"react": "^15.4.2"
KovalevAnton, davidzambrana, beausmith, hegelocampus, beerecca and 5 more
Metadata
Metadata
Assignees
Labels
pkg/driverThis is due to an issue in the packages/driver directoryThis is due to an issue in the packages/driver directoryprevent-stalemark an issue so it is ignored by stale[bot]mark an issue so it is ignored by stale[bot]type: bug