Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert to selenium's default config #2107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading