page.attach_file("#{Rails.root}/spec/factories/sample.jpg") do
find('.image-zone').click
end
これでいけました
参考記事
How do you test uploading a file with Capybara and Dropzone.js?
page.attach_file("#{Rails.root}/spec/factories/sample.jpg") do
find('.image-zone').click
end
これでいけました
How do you test uploading a file with Capybara and Dropzone.js?
コメントを残す