require "test_helper" # Send downloads to tmp/capybara/downloads so they can be reliably checked and cleaned up # without polluting ~/Downloads. class ApplicationSystemTestCase < ActionDispatch::SystemTestCase driven_by :selenium, using: :headless_chrome, screen_size: [1400, 1400] do |driver_option| driver_option.add_preference( :download, default_directory: Rails.root.join("tmp/capybara/downloads") ) end end