You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i try to use the selectFiles helper twice in the same input this erro ocour: TypeError: Cannot redefine property: files at Function.defineProperty (<anonymous>) at buildFileEvent (fire-event.js:190) at fireEvent (fire-event.js:50) ...
The text was updated successfully, but these errors were encountered:
I was able to fix the problem just addin the files attribute before calling the selectFiles helper, but adding the configurable option to allow the attribute to be changed. Object.defineProperty(find(${selector} [data-test-input-file]), 'files', { value: {}, configurable: true });
When i try to use the
selectFiles
helper twice in the same input this erro ocour:TypeError: Cannot redefine property: files at Function.defineProperty (<anonymous>) at buildFileEvent (fire-event.js:190) at fireEvent (fire-event.js:50) ...
The text was updated successfully, but these errors were encountered: