Skip to content

A platform for community discussion. Free, open, simple.

DEV: Clear caches properly in admin_color_palette_config_area_spec (#35087)

David Taylor347a8c96b72b
diff --git a/spec/system/admin_color_palette_config_area_spec.rb b/spec/system/admin_color_palette_config_area_spec.rb
index 6502fdb4bf5..a9d27af2658 100644
--- a/spec/system/admin_color_palette_config_area_spec.rb
+++ b/spec/system/admin_color_palette_config_area_spec.rb
@@ -12,6 +12,11 @@ describe "Admin Color Palette Config Area Page", type: :system do
before { sign_in(admin) }
+ after do
+ Stylesheet::Manager.rm_cache_folder
+ Stylesheet::Manager.cache.clear
+ end
+
it "allows editing the palette name" do
config_area.visit(color_scheme.id)