diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 2d0fceba..60a7dfa0 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -4,8 +4,8 @@ require 'spec_helper' require File.expand_path('../../config/environment', __FILE__) require 'rspec/rails' # Add additional requires below this line. Rails is not loaded until this point! -`trash tmp/capybara/*` -require 'capybara-screenshot/rspec' +# `trash tmp/capybara/*` +# require 'capybara-screenshot/rspec' # Requires supporting ruby files with custom matchers and macros, etc, in # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index 34838f8f..d28a0f40 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -1,15 +1,9 @@ -Capybara.server = :puma # Until your setup is working -# Capybara.server = :puma, { Silent: true } # To clean up your test output -#asset_hosts = { -# staging: 'http://13staging.owlephant.icu', -# development: 'http://localhost:3000', -# test: 'http://localhost:3000' -#} +Capybara.server = :puma -#if ENV['RAILS_ENV'] == 'staging' -# #Capybara.run_server = false -# Capybara.app_host = asset_hosts[ENV['RAILS_ENV'].to_sym] -#end -#Capybara.asset_host = asset_hosts[ENV['RAILS_ENV'].to_sym] +Capybara.register_driver :firefox do |app| + Capybara::Selenium::Driver.new(app, browser: :firefox) +end +# Capybara.default_driver = :firefox +# Capybara.javascript_driver = :chrome Capybara.javascript_driver = :selenium_chrome_headless