From 3c27df592e40ca6755160ce8bd595b292178380d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 20 Mar 2020 18:45:10 +0100 Subject: [PATCH] Remove test for flagging poll comments This feature hasn't been implemented and there are no plans to implement it in the near future. --- spec/system/comments/polls_spec.rb | 53 ------------------------------ 1 file changed, 53 deletions(-) diff --git a/spec/system/comments/polls_spec.rb b/spec/system/comments/polls_spec.rb index ded564fac..1df15f3e2 100644 --- a/spec/system/comments/polls_spec.rb +++ b/spec/system/comments/polls_spec.rb @@ -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")