Skip to content

Commit 262e952

Browse files
justin808claude
andcommitted
Register headless Chrome driver for tests
- Added DriverRegistration.register_selenium_chrome_headless call to ensure the headless driver is properly initialized before tests run - Tests already configured to use selenium_chrome_headless but driver wasn't being registered, causing browser window to flash - No browser window will appear during test runs now 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 707eee8 commit 262e952

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/rails_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
# Ensure that if we are running js tests, we are using latest webpack assets
4343
# This will use the defaults of :js and :server_rendering meta tags
4444
ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config)
45+
46+
# Register the headless Chrome driver
47+
DriverRegistration.register_selenium_chrome_headless
4548

4649
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
4750
config.fixture_path = Rails.root.join("spec/fixtures")

0 commit comments

Comments
 (0)