abramenal / cypress-file-upload

File upload testing made easy
https://npm.im/cypress-file-upload
MIT License
498 stars 90 forks source link

add stub to make compatible with uppy and add uppy as an example #329

Closed anark closed 3 years ago

anark commented 3 years ago

Checklist:

Summary of changes

Please provide here description of how this PR changes the codebase and the application and/or what bugs it fixes.

Linked issues

You might use keyword combinations like"Closes #1" to link issues or other related PRs

anark commented 3 years ago

Hey @abramenal, Sorry, I meant to add more of a description. This is intended as a start/first step for https://github.com/abramenal/cypress-file-upload/issues/141. Uppy(and other upload systems that support directory uploads) check for webkitGetAsEntry when uploading files https://github.com/transloadit/uppy/blob/main/packages/%40uppy/utils/src/getDroppedFiles/index.js.

Ideally we would also be able to select folders to support simulating the user uploading a directory.