Skip to content

Commit

Permalink
Extract common step
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Dec 21, 2024
1 parent 26170ed commit 57378e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/css_reload_test.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
require "application_system_test_case"

class CssReloadTest < ApplicationSystemTestCase
test "reload CSS changes" do
setup do
visit root_path
end

test "reload CSS changes" do
assert_text "This is pretty cool"

edit_file "app/assets/stylesheets/base.css", replace: "visible", with: "hidden"
Expand All @@ -11,7 +14,6 @@ class CssReloadTest < ApplicationSystemTestCase
end

test "load new CSS stylesheets" do
visit root_path
assert_text "This is pretty cool"

add_file "app/assets/stylesheets/other_stylesheet.css", <<~CSS
Expand Down

0 comments on commit 57378e2

Please sign in to comment.