Contents

Collectible items in moderated collections

@bookmarks @collections @works

As a user I want to add my items to moderated collections

Background:

  • Given I have a moderated collection "Various Penguins"
  • And I am logged in as a random user

Scenario: Add my work to a moderated collection by editing the work

  • Given I post the work "Blabla"
  • When I edit the work "Blabla"
  • And I fill in "Post to Collections / Challenges" with "various_penguins"
  • And I press "Preview"
  • Then I should see "the moderated collection 'Various Penguins'"
  • When I press "Update"
  • Then I should see "the moderated collection 'Various Penguins'"

Scenario: Add my bookmark to a moderated collection

  • Given I have a bookmark for "Tundra penguins"
  • When I add my bookmark to the collection "Various_Penguins"
  • Then I should see "until it has been approved by a moderator."
  • When the collection counts have expired
  • And I go to "Various Penguins" collection's page
  • Then I should see "Bookmarked Items (0)" within "#dashboard"
  • And I should not see "Tundra penguins"

Scenario: Bookmarks of deleted items are included on a moderated collection's

Awaiting Approval Manage Items page

  • Given I have a bookmark of a deleted work
  • And I add my bookmark to the collection "Various_Penguins"
  • When I am logged in as the owner of "Various Penguins"
  • And I view the awaiting collection approval collection items page for "Various Penguins"
  • Then I should see "Bookmark of deleted item"
  • And I should see "This has been deleted, sorry!"

Scenario: A work with too many tags can be approved

  • Given the user-defined tag limit is 2
  • And I post the work "Over the Limit" to the collection "Various Penguins"
  • And the work "Over the Limit" has 3 fandom tags
  • When I am logged in as the owner of "Various Penguins"
  • And I approve the work "Over the Limit" in the collection "Various Penguins"
  • And I submit
  • Then I should see "Collection status updated!"
  • And I should not see "Over the Limit"
  • When I view the work "Over the Limit"
  • Then I should see "Various Penguins"

Source: features/collections/collectible_moderated_collection.feature at commit f09caa86, Otwarchive (GPL license).