From c6331acc46cd1a58e477ae5a106766cc8d5dae16 Mon Sep 17 00:00:00 2001 From: rob Date: Wed, 10 Jan 2024 16:49:03 -0700 Subject: [PATCH] Switches to the headless chrome driver This prevents the browser from stealing focus from your editor/terminal when running integration tests. Once in a while I'm sure it's helpful to have this jump into the foreground but for day to day use I think it's better to have it in the background. --- test/application_system_test_case.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index d19212abd..33264b9ab 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -1,5 +1,5 @@ require "test_helper" class ApplicationSystemTestCase < ActionDispatch::SystemTestCase - driven_by :selenium, using: :chrome, screen_size: [1400, 1400] + driven_by :selenium, using: :headless_chrome, screen_size: [1400, 1400] end