comments: fix video duration not being shown on thumbnails
Fix the video duration not being shown on thumbnails on the https://danbooru.donmai.us/comments page. BUG: this introduces duplicate HTML ids on the comments page. Post thumbnails and post comment containers both have the same html ID.
This commit is contained in:
@@ -31,9 +31,9 @@ class CommentsControllerTest < ActionDispatch::IntegrationTest
|
||||
get comments_path(group_by: "post")
|
||||
|
||||
assert_response :success
|
||||
assert_select "#post_#{@post.id}", 1
|
||||
assert_select "#post_#{@post.id} .comment", 1
|
||||
assert_select "#post_#{@post.id} .show-all-comments-link", 0
|
||||
assert_select "div#post_#{@post.id}", 1
|
||||
assert_select "div#post_#{@post.id} .comment", 1
|
||||
assert_select "div#post_#{@post.id} .show-all-comments-link", 0
|
||||
end
|
||||
|
||||
should "not bump posts with nonbumping comments" do
|
||||
|
||||
Reference in New Issue
Block a user