Skip to content

Instantly share code, notes, and snippets.

@harssh
Created January 12, 2023 20:40
Show Gist options
  • Save harssh/b86a1d7d29199b4f319cc9a53cb40497 to your computer and use it in GitHub Desktop.
Save harssh/b86a1d7d29199b4f319cc9a53cb40497 to your computer and use it in GitHub Desktop.
Capybara_attach_file
If someone (like me) finds this later, I was able to achieve this without adding this helper, and instead having capybara attach like so:
attach_file(@basic_file, class: 'dz-hidden-input', make_visible: true)
Found via Stack Overflow, here: https://stackoverflow.com/questions/16722291/how-to-test-dropzone-js-upload-with-rails-cucumber-and-capybara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment