diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 500905fd3c83370f7f7019a1ff30d713b33769a5..41b20a1d9a07faf16a8f46b2c92e3ab8ed98e3e8 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -236,11 +236,11 @@ def page_filter_path(options = {})
   end
 
   def use_startup_css?
-    Feature.enabled?(:startup_css)
+    Feature.enabled?(:startup_css) && !Rails.env.test?
   end
 
   def stylesheet_link_tag_defer(path)
-    if use_startup_css? && !Rails.env.test?
+    if use_startup_css?
       stylesheet_link_tag(path, media: "print")
     else
       stylesheet_link_tag(path, media: "all")