Files
danbooru/test/system/blacklist_test.rb
evazion 1291505546 Fix blacklists not working on /comments page.
This rule:

    .post-preview.blacklisted-active, #image-container.blacklisted-active, #c-comments .post.blacklisted-active {
      display: none;
    }

was being overridden by this rule:

    div#c-comments div#a-index div.post, div#c-comments div#a-show div.post {
      display: flex;
    }
2019-10-01 00:36:47 -05:00

17 lines
466 B
Ruby

require "application_system_test_case"
class BlacklistTest < ApplicationSystemTestCase
context "Blacklists" do
context "on the /comments page" do
should "hide the entire post" do
user = create(:user, created_at: 1.month.ago)
post = create(:post, tag_string: "spoilers")
comment = as(user) { create(:comment, post: post) }
visit comments_path
assert_selector ".post", visible: :hidden
end
end
end
end