I have a HTML editor which accepts drag and drop file and image uploads. I need to test this is Cucumber (using Capybara and Poltergeist), but I can't find anything saying how to do it. I found that Capybara has drag and drop support, but it only mentions finding existing page elements and dragging them around. I need to send a file to the browser that's not there yet.
The editor has a contenteditable div, which picks up the file and then sends it to S3 via JS.