cypress
cypress copied to clipboard
Add cy.selectFolder for uploading a folder via cypress
What would you like?
It is great that cypress is gaining native support for file uploads via cy.selectFile
.
However, one issue I always had with cypress-file-upload
was that it did not support folder uploads. Modern HTML and libraries(such as Uppy) allow you to drag and drop an entire folder and they will handle recursively selecting the files from the dropped folder.
See original issue from cypress-file-upload: https://github.com/abramenal/cypress-file-upload/issues/141.
It would be great if it was possible to simulate dropping folders with cypress.
Why is this needed?
Modern upload drop zones allow for dropping of folders. This can be quite complicated to program and is currently impossible to test via cypress(as there is no way to simulate a folder drop). It would be great if this could be tested using cypress.
Other
No response
Hey! Is there an update on this? We could really use this very much!
Hello!! Any update here?
We could really use this feature too!
We are also in search of this feature. <3 Cypress plzzzzzzz!!
+1 for this request. It'd be really helpful.
Wow hit this as well. So tired testing this manually... @mjhenkes please please help!
+1 This would be a great addition!
Could really need this as well.
Any update on this feature. Need it to automate stories
Any update on this feature. Need it to automate stories
I simulated the browser APIs for directory listing and file access inside of my Cypress test suite. It's a bit slow and memory consuming, because I have to load all the files etc., but it works.
@LubosD can you share the code please? I tried and I didn't manage to make it work
This feature is helpful for our application too.