Contents

Some admins can see IP addresses and emails for comments

Scenario: Admin info for comments isn't visible to logged-out users

  • Given the work "Random Work"
  • And a guest comment on the work "Random Work"
  • When I am a visitor
  • And I view the work "Random Work" with comments
  • Then I should not see "IP Address:" within ".work.meta"
  • And I should not see "IP Address:" within ".comment.group"
  • And I should not see "Email:" within ".comment.group"

Scenario: Admin info for comments isn't visible to the work's owner

  • Given the work "Random Work"
  • And a guest comment on the work "Random Work"
  • When I am logged in as the author of "Random Work"
  • And I view the work "Random Work" with comments
  • Then I should not see "IP Address:" within ".work.meta"
  • And I should not see "IP Address:" within ".comment.group"
  • And I should not see "Email:" within ".comment.group"

Scenario Outline: Only certain admins can see IP addresses and email addresses for comments

  • Given the work "Random Work"
  • And a guest comment on the work "Random Work"
  • When I am logged in as a "<role>" admin
  • And I view the work "Random Work" with comments
  • Then I <should_ip> see "IP Address:" within ".work.meta"
  • And I <should_ip> see "IP Address:" within ".comment.group"
  • And I <should_email> see "Email:" within ".comment.group"

Examples:

roleshould_ipshould_email
superadminshouldshould
legalshouldshould
policy_and_abuseshouldshould
supportshould notshould
boardshould notshould not
communicationsshould notshould not
docsshould notshould not
electionsshould notshould not
open_doorsshould notshould not
tag_wranglingshould notshould not
translationshould notshould not

Scenario: No one can see email addresses for comments by registered users

  • Given the work "Random Work"
  • And I am logged in as "commenter"
  • And I post the comment "Hello" on the work "Random Work"
  • When I am logged in as a "superadmin" admin
  • And I view the work "Random Work" with comments
  • Then I should see "IP Address:" within ".work.meta"
  • And I should see "IP Address:" within ".comment.group"
  • But I should not see "Email:" within ".comment.group"

Source: features/comments_and_kudos/admin_info.feature at commit f09caa86, Otwarchive (GPL license).