From 33067d3dbc67c28bbfa408d8a241ef901b108c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Pinz=C3=B3n=20Eslava?= <10928518+pinzonjulian@users.noreply.github.com> Date: Fri, 18 Oct 2024 22:27:42 +1100 Subject: [PATCH] create failing test --- test/integration/user_journey_test.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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"