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")