I've been trying to figure out how to get react-testing-library working with react-datepicker.
So far, I've been able to get the input box wrapped correctly, and can access it via the getByLabelText
function, but I can't seem to get the date picker to appear no matter what event I fire on the textbox.
I've been able to use the base Enzyme method for getting the date picker to appear, but it doesn't seem to want to work through react-testing-library. Here is a working version of the issue that I'm facing: https://codesandbox.io/s/compassionate-bose-8gpbt