Remove test for flagging poll comments

This feature hasn't been implemented and there are no plans to implement
it in the near future.
This commit is contained in:
Javi Martín
2020-03-20 18:45:10 +01:00
parent 09fd3ab44a
commit 3c27df592e

View File

@@ -298,59 +298,6 @@ describe "Commenting polls" do
expect(page).to have_css(".comment.comment.comment.comment.comment.comment.comment.comment")
end
scenario "Flagging as inappropriate", :js do
skip "Feature not implemented yet, review soon"
comment = create(:comment, commentable: poll)
login_as(user)
visit poll_path(poll)
within "#comment_#{comment.id}" do
page.find("#flag-expand-comment-#{comment.id}").click
page.find("#flag-comment-#{comment.id}").click
expect(page).to have_css("#unflag-expand-comment-#{comment.id}")
end
expect(Flag.flagged?(user, comment)).to be
end
scenario "Undoing flagging as inappropriate", :js do
skip "Feature not implemented yet, review soon"
comment = create(:comment, commentable: poll)
Flag.flag(user, comment)
login_as(user)
visit poll_path(poll)
within "#comment_#{comment.id}" do
page.find("#unflag-expand-comment-#{comment.id}").click
page.find("#unflag-comment-#{comment.id}").click
expect(page).to have_css("#flag-expand-comment-#{comment.id}")
end
expect(Flag.flagged?(user, comment)).not_to be
end
scenario "Flagging turbolinks sanity check", :js do
skip "Feature not implemented yet, review soon"
poll = create(:poll, title: "Should we change the world?")
comment = create(:comment, commentable: poll)
login_as(user)
visit polls_path
click_link "Should we change the world?"
within "#comment_#{comment.id}" do
page.find("#flag-expand-comment-#{comment.id}").click
expect(page).to have_selector("#flag-comment-#{comment.id}")
end
end
scenario "Erasing a comment's author" do
poll = create(:poll)
comment = create(:comment, commentable: poll, body: "this should be visible")