diff --git a/test/integration/user_journey_test.sh b/test/integration/user_journey_test.sh index 178d5a57..13fe44fc 100755 --- a/test/integration/user_journey_test.sh +++ b/test/integration/user_journey_test.sh @@ -61,4 +61,11 @@ grep -q "Show this post" app/views/posts/index.html.erb bin/rails tailwindcss:build[verbose] grep -q "py-2" app/assets/builds/tailwind.css +# TEST: edit the css file by adding a custom property to the @theme block +tailwind_application_css_file_path="app/assets/stylesheets/application.tailwind.css" +echo -e "\n@theme { --color-tomato: #fafafa; }" >> "$tailwind_application_css_file_path" + +bin/rails tailwindcss:build[verbose] +grep -q "fafafa" app/assets/builds/tailwind.css + echo "OK"