spec/support/capybara.rb in solidus_social-1.1.0 vs spec/support/capybara.rb in solidus_social-1.2.0

- old
+ new

@@ -1,18 +1,11 @@ require 'capybara/rspec' require 'capybara/rails' require 'capybara/poltergeist' +require 'capybara-screenshot/rspec' +require 'selenium-webdriver' RSpec.configure do |config| config.include Rack::Test::Methods, type: :requests - Capybara.javascript_driver = :poltergeist - Capybara.register_driver(:poltergeist) do |app| - Capybara::Poltergeist::Driver.new app, js_errors: true, timeout: 60 - end - - config.before(:each, :js) do - if Capybara.javascript_driver == :selenium - page.driver.browser.manage.window.maximize - end - end + Capybara.javascript_driver = :selenium_chrome_headless end