Skip to content

Commit

Permalink
Revert to selenium's default config
Browse files Browse the repository at this point in the history
Problems should be fixed in chrome 122
  • Loading branch information
jcoyne committed Feb 14, 2024
1 parent e93acbb commit 89c8755
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@
require 'view_component/test_helpers'
require 'view_component/system_test_helpers'

# Capybara 3.40.0 started using the new chrome headless by default:
# https://developer.chrome.com/docs/chromium/new-headless
# Their default selenium_chrome_headless driver definition includes
# --disable-site-isolation-trials. Some embed tests will crash Chrome with
# that option.
Capybara.register_driver :selenium_chrome_headless do |app|
browser_options = Selenium::WebDriver::Chrome::Options.new
browser_options.add_argument('--headless=new')
Capybara::Selenium::Driver.new(app, browser: :chrome, options: browser_options)
end

Capybara.javascript_driver = :selenium_chrome_headless
Capybara.enable_aria_label = true
Capybara.default_max_wait_time = ENV['CI'] ? 30 : 5
Expand Down

0 comments on commit 89c8755

Please sign in to comment.