You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
accept_confirm("Are you sure? The user will no longer be able to log in or publish, and their content will be hidden except comments.")do
72
+
first("a[data-original-title='Mark as spam'").click()
73
+
end
74
+
75
+
page.assert_selector("div.alert-success",text: "Comment has been marked as spam and comment author has been banned. You can undo this on the spam moderation page.")
76
+
77
+
banned_comment_author=note.comments.first.author
78
+
visit"/profile/#{banned_comment_author.name}"
79
+
80
+
page.assert_selector("div.alert",text: "That user has been banned.")
0 commit comments