Skip to content

Commit

Permalink
Specify download default directory
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Aug 2, 2024
1 parent 478d882 commit 170ec81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/dummy_app/spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
options.add_argument '--disable-gpu'
options.add_argument '--window-size=1024,768'
options.add_argument '--remote-debugging-pipe'
options.add_preference "download.default_directory", Rails.root.join("tmp/downloads")
Capybara::Selenium::Driver.new app, browser: :chrome, options: options
end

Expand Down

0 comments on commit 170ec81

Please sign in to comment.