-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update command to accept multiple fixtures. fixes #203 #227
Conversation
@Hypercubed thanks for submitting MR! Looks good 👍 Also it is worth updating README.md with simple snippet to illustrate how this should work. |
@all-contributors add @Hypercubed for code |
I've put up a pull request to add @Hypercubed! 🎉 |
@Hypercubed unfortunately this is not working with react drag-n-drop. The reason is – before dataTransfer object contained all the files added, and for drag-n-drop case it triggered specific events with that dataTransfer object. |
I'm not sure I undetstand what you mean by "cannot trigger valid event containing all the files". Does this mean it break react drag-n-drop entirely or only when passing multiple fixtures. I wonder if it ever work with the older version. |
It breaks entirely regardless of files count. You can reproduce it when running examples/react-dropzone repo tests – there you can tweak I planned to look into it this weekend, but feel free to investigate if you have time. |
Hey there, @abramenal , @Hypercubed any idea when this will happen? Our project relies heavily on uploading files and we just started updating from cypress 4.12.1 to cypress 6.4.1 so naturally need to update the cypress-file-upload plugin. Would hate to leave the the mulitple-images upload test cases hanging. Sadly I don't have enough technical background to dive into the issues myself. |
Hi @tommy-anderson, I see @paulblyth submitted a PR, I am happy to look at it during weekend. Hopefully this will work just fine so I can release it quickly. Will keep this PR posted as well. |
#251 is merged, so closing this one. Thanks anyways, appreciate your effort and welcome to the contributors list ❤️ |
This PR seperates out events from attaching files. The
attachFile
now accepts an array of fixtures. Each fixture is attached sequentually then the events are trigger.Added tests and verified in
recipes/angularjs-ng-file-upload
.Closes #203