diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5163aadb..63194f25 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -12,18 +12,9 @@ require 'rack_session_access/capybara' require 'capybara-screenshot/rspec' -Capybara.server_host = '0.0.0.0' -Capybara.server_port = 3030 - -Capybara.register_driver :chrome_headless do |app| - args = %w[--headless --disable-gpu --no-sandbox --disable-extensions --disable-dev-shm-usage --window-size=1440,900 --enable-features=NetworkService,NetworkServiceInProcess] - options = Selenium::WebDriver::Chrome::Options.new(args: args) - Capybara::Selenium::Driver.new(app, browser: :chrome, options: options) -end - # Next 2 are Chrome drivers # Capybara.javascript_driver = :selenium_chrome -Capybara.javascript_driver = :chrome_headless +Capybara.javascript_driver = :selenium_chrome_headless # Next 2 are FireFox drivers # Capybara.javascript_driver = :selenium