-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.type
dont work with datetime-local
inputs
#688
Comments
hi @ph-fritsche I dont undestand, what is the solution then? How should I test a datetime-local input? |
If you care about a consistent user experience you should not use If you ditch users of Firefox (See this 8 year old issue) and some minor browsers, you can use fireEvent.input(el, {target: {value}}) |
Looks like Firefox has support nowadays (https://bugzilla.mozilla.org/show_bug.cgi?id=1283388) and behaves similar to Chrome. Can we have another look at this issue? |
@Fox32 With consistent behavior across browsers we might consider an implementation. |
@testing-library/user-event
version:13.1.9
jest 27.0.5
jsdom
(default jest version)Relevant code or config
What you did: tried to type a date to the datetime input
What happened: no date has been entered on the input
Reproduction repository: https://codesandbox.io/s/gifted-kapitsa-dfhst?file=/main.test.js
Problem description:
Suggested solution: I've seen previous similar issues (for
date
ortime
inputs), and I think it's just a matter to include a branch logic fordatetime-local
inputs.The text was updated successfully, but these errors were encountered: