Skip to content

Commit

Permalink
Use dot notation for class in CSS selector
Browse files Browse the repository at this point in the history
  • Loading branch information
gma committed Aug 10, 2024
1 parent 53f99cd commit 766ec33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/default_theme_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def create_page_and_menu
with_temp_content_directory do
model = create_page_and_menu
visit model.path
assert_has_css "ul.menu li[class='current']:contains('#{model.link_text}')"
assert_has_css "ul.menu li.current:contains('#{model.link_text}')"
end
end

Expand All @@ -100,7 +100,7 @@ def create_page_and_menu
with_temp_content_directory do
model = create_page_and_menu
visit "/prefix/#{model.path}"
assert_has_css "ul.menu li[class='current']:contains('#{model.link_text}')"
assert_has_css "ul.menu li.current:contains('#{model.link_text}')"
end
end
end
Expand Down

0 comments on commit 766ec33

Please sign in to comment.