Skip to content

Commit

Permalink
Update tests after the new CMS data changes
Browse files Browse the repository at this point in the history
  • Loading branch information
murny committed Aug 2, 2024
1 parent 89fc74f commit a7e00a7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/integration/cms_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ class CmsTest < ActionDispatch::IntegrationTest
assert_response :success
assert_select "h2", "Search the Library"
end

test "hours and locations page" do
get comfy_cms_render_page_path(cms_path: "hours-locations")
test "ask us page" do
get comfy_cms_render_page_path(cms_path: "ask-us")

assert_response :success
assert_select "h1", /Hours & Locations/
assert_select "h1", /Ask Us/
assert_select "h2", "Chat with Us"
end

test "about us page" do
get comfy_cms_render_page_path(cms_path: "about-us")
test "about page" do
get comfy_cms_render_page_path(cms_path: "about")

assert_response :success
assert_select "h1", /About Us/
assert_select "h1", /About the Library/
assert_select "h2", "A Message from our Chief Librarian"
end
end

0 comments on commit a7e00a7

Please sign in to comment.