attach_file Cat.human_attribute_name(:avatar), file_fixture('avatar.png')
For a dropzone in form[data-controller="dropzone"]
:
attach_file file_fixture('avatar.png') do
find('form[data-controller="dropzone"]').click
end
Feb 14, 2025
attach_file Cat.human_attribute_name(:avatar), file_fixture('avatar.png')
For a dropzone in form[data-controller="dropzone"]
:
attach_file file_fixture('avatar.png') do
find('form[data-controller="dropzone"]').click
end