From 9ba46105ddbe79e3e56a9f9423fe04c2bd2a862a Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 29 Sep 2019 14:29:28 -0500 Subject: [PATCH] tests: skip system tests when firefox isn't installed. --- test/application_system_test_case.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 9ca42980a..213f7e15b 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -3,4 +3,8 @@ require "test_helper" class ApplicationSystemTestCase < ActionDispatch::SystemTestCase include SystemTestHelper driven_by :selenium, using: :headless_firefox, screen_size: [1400, 1400] + + setup do + skip "Firefox not installed" unless system("firefox --version > /dev/null") + end end