I'm writing a test that checks the input of 2 fields, one is type text and the other is type number.
I can grab the text input without issue and test it:
textInput = getAllByPlaceholderText('name');
userEvent.type(textInput[0], 'username');
This works perfectly when I check the test with screen.debug();
But the number input is very different.
numInput = getAllByRole('spinbutton');
userEvent.type(numInput[0], '1');
This doesnt change the value when checking the debugger. I've been searching online for an answer but failed to find anything, could someone help? I'm guessing the userEvent needs changing but since any actual users can simply type into this box should .type still work?