Open elotgamu opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I also have this issue, but only on mobile. Any solution you found?
I also have this issue, but only on mobile. Any solution you found?
No solution found. The only turn around for test suite to pass is to test user interaction through keyboard instead of click.
I found out that there was a PR created with a fix: https://github.com/zillow/react-slider/pull/311
Description
I ran into issues when I created a test when user clicks on steps to update slider value. However, testing using keyboard
Arrow Rigth
works as expected.Also when testing with the preview the click on the steps works as expected.
Package versions:
Relevant code
Component
App
Tests
Notes:
getByLabelText
. Even though aria-label does not make much sense on span tags. We are able to query and click marks butonChange
get called with old value or not called at all. So slider value does not get updated.CodeSandbox
Please replicate on the below sandbox link
https://codesandbox.io/s/react-slider-prompt-level-iun34i?file=/src/App.test.js
Thank you so much for the library, it is an awesome one.