RSpec.configure do |config| config.before(:each, type: :feature, js: true) do page.driver.browser.manage.window.resize_to(1600, 1024) end end Capybara.javascript_driver = (ENV['CAPYBARA_DRIVER'] || :selenium_chrome_headless).to_sym