Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

77 lines (66 sloc) 2.833 kb
Feature: Subscriptions
In order to follow aa fandom I like
As a reader
I want to subscribe to it
Scenario: Subscribe to a test fandom when there are no works in it
When I am logged in as "author"
And I post a work with category "M/F"
When I am logged in as "reader"
And I view the "F/F" works index
Then I should see "Subscribe to the feed"
# TODO: If you uncomment the next line, it fails horribly. Is this a genuine bug, or a cucumber error?
# When I follow "Subscribe to the feed"
# Then I should not see "My Work Title"
# And I should not see "Stargate SG-1"
Scenario: Subscribe to a test fandom when there are works in it
When I am logged in as "author"
And I post a work with category "F/F"
When I am logged in as "reader"
And I view the "F/F" works index
Then I should see "Subscribe to the feed"
When I follow "Subscribe to the feed"
Then I should see "My Work Title"
And I should see "Stargate SG-1"
Scenario: Subscribe to a non-test fandom
When I am logged in as "author"
And I post a work with category "Multi"
When I am logged in as "reader"
And I view the "Multi" works index
Then I should not see "Subscribe to the feed"
Scenario: Mystery work is not shown in feed
Given basic tags
And I am logged in as "myname2"
Given I have a hidden collection "Hidden Treasury" with name "hidden_treasury"
When I am logged in as "myname1"
And I post the work "Old Snippet"
And I edit the work "Old Snippet"
And I fill in "Post to Collections / Challenges" with "hidden_treasury"
And I check "F/F"
And I press "Post without preview"
Then I should see "This work is part of an ongoing challenge and will be revealed soon! You can find details here: Hidden Treasury"
When I am logged in as "author"
And I post a work with category "F/F"
When I view the "F/F" works index
When I follow "Subscribe to the feed"
Then I should not see "Old Snippet"
And I should not see "myname1"
And I should see "author"
Scenario: Author of anonymous work is not shown in feed
Given basic tags
And I am logged in as "myname2"
Given I have an anonymous collection "Hidden Treasury" with name "hidden_treasury"
When I am logged in as "myname1"
And I post the work "Old Snippet"
And I edit the work "Old Snippet"
And I fill in "Post to Collections / Challenges" with "hidden_treasury"
And I check "F/F"
And I press "Post without preview"
Then I should see "Anonymous"
And I should see "Collections: Hidden Treasury"
When I am logged in as "author"
And I post a work with category "F/F"
When I view the "F/F" works index
When I follow "Subscribe to the feed"
Then I should see "Old Snippet"
And I should not see "myname1"
And I should see "author"
Jump to Line
Something went wrong with that request. Please try again.