How to trigger decrement callback for Spinbutton in tests? #17195
Unanswered
Cristian Cuna (crismic)
asked this question in
Q&A
Replies: 1 comment
|
Hey @mccuna, have you checked test files of SpinButton, they should have increment/decrement: https://github.com/microsoft/fluentui/blob/master/packages/react-components/react-spinbutton/library/src/components/SpinButton/SpinButton.test.tsx |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey,
I'm trying to test the decrement callback of a
SpinButton, but it seems it's not called when I fire the click event on the decrement button. Am I missing something?I've also put together a codesandbox if it proves useful: https://codesandbox.io/s/trigger-splinbutton-decrement-g918h?file=/src/Sample.test.tsx.
Versions used:
All reactions