diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index d19212a..2ac80b6 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -1,5 +1,7 @@ require "test_helper" class ApplicationSystemTestCase < ActionDispatch::SystemTestCase - driven_by :selenium, using: :chrome, screen_size: [1400, 1400] + driven_by :selenium, + using: ENV["VISIBLE_SYSTEM_TESTS"].present? ? :chrome : :headless_chrome, + screen_size: [1400, 1400] end