Skip to content
This repository
tree: 7245655230
Fetching contributors…

Cannot retrieve contributors at this time

file 110 lines (96 sloc) 5.053 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
Feature: Filing an abuse report
In order to report something
As an annoyed user
I want to file an abuse ticket

Scenario: File an abuse request with default options
Given I have a work "Illegal thing"
When I am logged in as "otheruser"
And I am on the home page
And I follow "Report Abuse"
Then I should see "Most abuse reports fall into the following categories"
And I should see the text with tags "value=\"http://www.example.com/"
When I fill in "Describe your concern" with "This is wrong"
And I fill in "Link to the page you are reporting" with "http://www.example.org/"
And I press "Submit"
# Redirecting to home means flash message doesn't show
# Then I should see "Your abuse report was sent to the Abuse team."
Then 1 email should be delivered
And the email should contain "This is wrong"
Scenario: URL is auto-filled on abuse report
Given I have a work "Illegal thing"
When I am logged in as "otheruser"
And I view the work "Illegal thing"
And I follow "Report Abuse"
Then I should see the text with tags "value=\"http://www.example.com/works/"
Scenario: Receive a copy of your abuse request
Given I have a work "Illegal thing"
When I am logged in as "otheruser"
And I am on the home page
And I follow "Report Abuse"
When I select "Inappropriate content rating" from "Please select your concern"
And I fill in "Describe your concern" with "This is wrong"
And I fill in "Link to the page you are reporting" with "http://www.example.org/"
And I check "Email me a copy of my message (optional)"
# TODO: I believe the failure on the next step is a defect
# And I press "Submit"
#Then I should see "Your abuse report was sent to the Abuse team."
# And 2 emails should be delivered
Scenario: File an anonymous abuse request while logged in
When I am logged in as "otheruser"
And I am on the home page
And I follow "Report Abuse"
When I select "Inappropriate content rating" from "Please select your concern"
And I fill in "Describe your concern" with "This is wrong"
And I fill in "Link to the page you are reporting" with "http://www.example.org/"
And I fill in "Your email" with ""
And I press "Submit"
# Redirecting to home means flash message doesn't show
# Then I should see "Your abuse report was sent to the Abuse team."
And 1 email should be delivered
And the email should contain "This is wrong"
Scenario: File an abuse request while logged out
Given I have a work "Illegal thing"
When I am logged out
And I am on the home page
And I follow "Report Abuse"
Then I should see "Most abuse reports fall into the following categories"
When I select "Inappropriate content rating" from "Please select your concern"
And I fill in "Describe your concern" with "This is wrong"
And I fill in "Link to the page you are reporting" with "http://www.example.org/"
And I press "Submit"
# Redirecting to home means flash message doesn't show
# Then I should see "Your abuse report was sent to the Abuse team."
And 1 email should be delivered
And the email should contain "This is wrong"
Scenario: File an anon request but accidentally tick the box to have a copy emailed
When I am logged in as "otheruser"
And I am on the home page
And I follow "Report Abuse"
When I select "Inappropriate content rating" from "Please select your concern"
And I fill in "Describe your concern" with "This is wrong"
And I fill in "Link to the page you are reporting" with "http://www.example.org/"
And I fill in "Your email" with ""
And I check "Email me a copy of my message (optional)"
And I press "Submit"
Then 1 email should be delivered
Then I should see "Sorry, we can only send you a copy of your abuse report if you enter a valid email address"
And I should see "Your abuse report was sent to the Abuse team."
Scenario: File an anon request but accidentally tick the box to have a copy emailed, then try to send it again (issue 820)
When I am logged in as "otheruser"
And I am on the home page
And I follow "Report Abuse"
When I select "Inappropriate content rating" from "Please select your concern"
And I fill in "Describe your concern" with "This is wrong"
And I fill in "Link to the page you are reporting" with "http://www.example.org/"
And I fill in "Your email" with ""
And I check "Email me a copy of my message (optional)"
And I press "Submit"
When I select "Inappropriate content rating" from "Please select your concern"
And I fill in "Describe your concern" with "This is wrong"
And I fill in "Link to the page you are reporting" with "http://www.example.org/"
And I fill in "Your email" with "valid@archiveofourown.org"
And I check "Email me a copy of my message (optional)"
# TODO: Fix Issue 820
# And I press "Submit"
#Then 1 email should be delivered
#Then I should see "Your abuse report was sent to the Abuse team."
Something went wrong with that request. Please try again.