Open
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"