Add firefox driver for specs. Disable capybara screenshots
This commit is contained in:
parent
50508da8f8
commit
7f5f4145e9
@ -4,8 +4,8 @@ require 'spec_helper'
|
|||||||
require File.expand_path('../../config/environment', __FILE__)
|
require File.expand_path('../../config/environment', __FILE__)
|
||||||
require 'rspec/rails'
|
require 'rspec/rails'
|
||||||
# Add additional requires below this line. Rails is not loaded until this point!
|
# Add additional requires below this line. Rails is not loaded until this point!
|
||||||
`trash tmp/capybara/*`
|
# `trash tmp/capybara/*`
|
||||||
require 'capybara-screenshot/rspec'
|
# require 'capybara-screenshot/rspec'
|
||||||
|
|
||||||
# Requires supporting ruby files with custom matchers and macros, etc, in
|
# Requires supporting ruby files with custom matchers and macros, etc, in
|
||||||
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
||||||
|
|||||||
@ -1,15 +1,9 @@
|
|||||||
Capybara.server = :puma # Until your setup is working
|
Capybara.server = :puma
|
||||||
# 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'
|
|
||||||
#}
|
|
||||||
|
|
||||||
#if ENV['RAILS_ENV'] == 'staging'
|
Capybara.register_driver :firefox do |app|
|
||||||
# #Capybara.run_server = false
|
Capybara::Selenium::Driver.new(app, browser: :firefox)
|
||||||
# Capybara.app_host = asset_hosts[ENV['RAILS_ENV'].to_sym]
|
end
|
||||||
#end
|
|
||||||
#Capybara.asset_host = asset_hosts[ENV['RAILS_ENV'].to_sym]
|
|
||||||
|
|
||||||
|
# Capybara.default_driver = :firefox
|
||||||
|
# Capybara.javascript_driver = :chrome
|
||||||
Capybara.javascript_driver = :selenium_chrome_headless
|
Capybara.javascript_driver = :selenium_chrome_headless
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user