Figure out how to test <DatetimeLocalField/>
Currently it doesn't seem possible to
This issue in the DOM Testing library indicates that we should just fire input event directly...
fireEvent.input(startDate, { target: { value: expected.startDate } })
...which does set the value (at least, form validation "... is required" is no longer rendered) but the form still won't submit on clicking save. Something in the internals of Redwood's React Hook Form decorations is preventing this from working.
Next Steps:
- Deconstruct the form wrapper (or just use react-hook-form natively) and try to set up a minimal repro case.
- Open an issue or share solution on the forum, depending on what I find