diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 09a182c4a..b36e55a5f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -175,6 +175,14 @@ config.filter_run_excluding :local_users + if ENV["CI"].blank? + begin + Ferrum::Browser.new + rescue Ferrum::BinaryNotFoundError + config.filter_run_excluding :js + end + end + config.infer_spec_type_from_file_location! config.define_derived_metadata(file_path: %r{/spec/components/}) do |metadata|