Skip to content

Commit

Permalink
Add css reload test
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Dec 14, 2024
1 parent 1ea3cd8 commit 8444c2d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
12 changes: 12 additions & 0 deletions test/css_reload_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
require "application_system_test_case"

class CssReloadTest < ApplicationSystemTestCase
test "reload HTML changes" do
visit root_path
assert_text "This is pretty cool"

change_file "app/assets/stylesheets/base.css", "visible", "hidden"

assert_no_text "This is pretty cool"
end
end
2 changes: 1 addition & 1 deletion test/dummy/app/assets/stylesheets/base.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
body {
color: blue;
visibility: visible;
}
7 changes: 0 additions & 7 deletions test/hotwire_spark_test.rb

This file was deleted.

0 comments on commit 8444c2d

Please sign in to comment.