userEvent.upload does not work when input accept
contains space
#1060
Labels
bug
Something isn't working
accept
contains space
#1060
Reproduction example
https://codesandbox.io/s/sad-david-5wel5v?file=/src/App.test.js
Prerequisites
accept
was configured with command AND space (,
), e.g.userEvent.upload(...)
on this input with a file type that matches theaccept
.Expected behavior
onChange
event should be triggered on the input andinput.files
should be updated.Actual behavior
Neither
input.files
is updated noronChange
was fired.User-event version
14.4.3
Environment
Testing Library framework:
JS framework:
Test environment:
DOM implementation:
Additional context
The
accept
attribute on file input does accept file types separated by command + space, both in terms of web standard and what browsers can actually handle.The text was updated successfully, but these errors were encountered: