Closed gsstar9028 closed 2 years ago
Greetings,
I'd be happy to help and work through it. Would you be so kind as to set up a codesandbox with the test cases so that it would be easier to work through?
added codesandbox link trying to make options show up
+1
+1
@ebonow show time~!
That issue is also happening on <Select />
if I am not mistaken. I can assert the dropdown is opened on ArrowDown but can't select an option from it.
Just wanted to follow up.
I have had an opportunity since first replying to this to view and add more tests to the react-select library, but seem to be running into some issues with this implementation for some reason.
There are plenty of examples here: https://github.com/JedWatson/react-select/blob/master/packages/react-select/src/__tests__/Select.test.js which may help. I'll continue to keep looking at this and trying to figure out why this particular implementation isn't compiling or working with the provided example.
Marking this as stale for now, please open a pull request if you have a resolution and the problem is on behalf of react-select
Created a wrapper component (MultiSelect) that essentially returns a ReactSelect from react-select. Using React Testing Library to test it, I could trigger a focus event on the option I am selecting but couldn't trigger a selection.
codesandbox: https://codesandbox.io/s/react-select-test-ni125?file=/src/__tests__/WrappedSelect.test.js:137-141