Simplify links on diary pages

This commit is contained in:
Anton Khorev 2024-03-21 17:26:20 +03:00
parent fda99ba304
commit ff8fbcbdc5
7 changed files with 20 additions and 17 deletions

View file

@ -886,8 +886,9 @@ class DiaryEntriesControllerTest < ActionDispatch::IntegrationTest
get diary_comments_path(:display_name => other_user.display_name)
assert_response :success
assert_template :comments
assert_select "table.table-striped" do
assert_select "tr", :count => 2 # header and one comment
assert_dom "a[href='#{user_path(other_user)}']", :text => other_user.display_name
assert_select "table.table-striped tbody" do
assert_select "tr", :count => 1
end
# Test a suspended user