Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e32c439f2e
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 77 lines (67 sloc) 2.884 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
@bookmarks @collections @works

Feature: Collectible items
As a user
I want to add various items to collections

Scenario: Add my work to a collection
Given I have a collection "Various Penguins"
And I am logged in as a random user
And I post the work "Blabla"
When I add my work to the collection
Then I should see "Added"
When I go to "Various Penguins" collection's page
Then I should see "Works (1)"
And I should see "Blabla"

Scenario: Add my chaptered work to a collection
Given I have a collection "Various Penguins"
And I am logged in as a random user
And I post the chaptered work "Blabla"
When I add my work to the collection
Then I should see "Added"
When I go to "Various Penguins" collection's page
Then I should see "Works (1)"
And I should see "Blabla"

Scenario: Add my work to a moderated collection
Given I have a moderated collection "Various Penguins"
And I am logged in as a random user
And I post the work "Blabla"
When I add my work to the collection
Then I should see "will have to be approved"
When I go to "Various Penguins" collection's page
Then I should see "Works (0)"
And I should not see "Blabla"

Scenario: Add my work to a closed collection
Given I have a closed collection "Various Penguins"
And I am logged in as a random user
And I post the work "Blabla"
When I add my work to the collection
Then I should see "is closed"
When I go to "Various Penguins" collection's page
Then I should see "Works (0)"
And I should not see "Blabla"

Scenario: Add my bookmark to a collection
Given I have a collection "Various Penguins"
And I am logged in as a random user
And I have a bookmark for "Tundra penguins"
When I add my bookmark to the collection
Then I should see "Added"
When I follow "Various Penguins"
Then I should see "Bookmarks (1)" within "#dashboard"
And I should see "Tundra penguins"

Scenario: Add my bookmark to a moderated collection
Given I have a moderated collection "Various Penguins"
And I am logged in as a random user
And I have a bookmark for "Tundra penguins"
When I add my bookmark to the collection
Then I should see "will have to be approved"
When I go to "Various Penguins" collection's page
Then I should see "Bookmarks (0)"
And I should not see "Tundra penguins"

Scenario: Add my bookmark to a closed collection
Given I have a closed collection "Various Penguins"
And I am logged in as a random user
And I have a bookmark for "Tundra penguins"
When I add my bookmark to the collection
Then I should see "is closed"
When I go to "Various Penguins" collection's page
Then I should see "Bookmarks (0)"
And I should not see "Tundra penguins"

Something went wrong with that request. Please try again.