Open john-zhang-dev opened 1 year ago
https://codesandbox.io/s/condescending-cartwright-s38f8f?file=/src/App.test.tsx
<input type="date" />
userEvent
Date input's value should change as per user input, e.g. "2020-01-01"
Date input has no value changes
14.4.3
"@testing-library/jest-dom": "5.16.5", "@testing-library/react": "14.0.0", "@testing-library/user-event": "14.4.3", "jest": "26.6.0", "react": "18.0.0", "react-dom": "18.0.0",
No response
Please see https://github.com/testing-library/testing-library-docs/issues/389#issuecomment-583011925
userEvent works for me with a date input if I use the ISO value, for example '2020-01-30'.
'2020-01-30'
Reproduction example
https://codesandbox.io/s/condescending-cartwright-s38f8f?file=/src/App.test.tsx
Prerequisites
<input type="date" />
userEvent
to type in a valid date, e.g. "01012020"Expected behavior
Date input's value should change as per user input, e.g. "2020-01-01"
Actual behavior
Date input has no value changes
User-event version
14.4.3
Environment
Additional context
No response