Expect input.validity.tooShort to be true, expect input.validationMessage to not be an empty string. Basically, expect it to trigger native constraint validation
Expected behavior
Expect behavior:
When typing 123 into a <input minlength="10"> I expect native constraint validation to be trigger.
Reproduction example
https://codesandbox.io/p/devbox/pm73nz?file=%2Fsrc%2Findex.test.jsx%3A25%2C1
Prerequisites
<input minlength="10">
element.input.focus(); await user.type("{1}{2}{3}")
input.validity.tooShort
to be true, expectinput.validationMessage
to not be an empty string. Basically, expect it to trigger native constraint validationExpected behavior
Expect behavior:
When typing
123
into a<input minlength="10">
I expect native constraint validation to be trigger.https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/tooShort https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength
Actual behavior
Native constraint validation never triggers
User-event version
14.5.2
Environment
No response
Additional context
No response