Contents

Tag Wrangling - Freeforms

@tags @users @tag_wrangling

Scenario: freeforms wrangling - syns, mergers, autocompletes, metatags

@javascript

  • Given the following activated tag wrangler exists
    loginpassword
    Enigelwrangulate!
  • And basic tags
  • And I am logged in as "Enigel" with password "wrangulate!"
  • And I follow "Tag Wrangling"
  • When I follow "New Tag"
  • And I fill in "Name" with "Alternate Universe Pirates"
  • And I choose "Additional Tag"
  • And I check "Canonical"
  • And I press "Create Tag"
  • Then I should see "Tag was successfully created"
  • And the "Canonical" checkbox should be checked
  • And the "Canonical" checkbox should not be disabled
  • When I follow "New Tag"
  • And I fill in "Name" with "Pirates! in Spaaaaace! AU"
  • And I choose "Additional Tag"
  • And I press "Create Tag"
  • Then I should see "Tag was successfully created"
  • And the "Canonical" checkbox should not be checked
  • And the "Canonical" checkbox should not be disabled
  • When I fill in "Synonym of" with "Alternate Universe Space Pirates"
  • And I press "Save changes"
  • Then I should see "Tag was updated"
  • And I should not see "Synonyms"
  • When I follow "Edit Alternate Universe Space Pirates"
  • And I should see "Pirates! in Spaaaaace! AU"
  • And the "Canonical" checkbox should be checked and disabled
  • When I go to the new work page
  • And I fill in the basic work information for "Silliness"
  • And I fill in "Fandoms" with "Torchwood"
  • And I fill in "Additional Tags" with "Pirate AU, Arrr-verse"
  • And I press "Post"
  • Then I should see "Work was successfully posted."
  • When I follow "Pirate AU"
  • And I follow "Edit"
  • And I choose "Alternate Universe Pirates" from the "Synonym of" autocomplete
  • And I choose "No Fandom" from the "tag_fandom_string_autocomplete" autocomplete
  • And I press "Save changes"
  • Then I should see "Tag was updated"
  • When I follow "Edit Alternate Universe Pirates"
  • Then I should see "No Fandom"
  • And I should see "Pirate AU"
  • And the "Canonical" checkbox should be disabled
  • And all indexing jobs have been run
  • When I choose "Arrr-verse" from the "tag_merger_string_autocomplete" autocomplete
  • And I press "Save changes"
  • Then I should see "Tag was updated"
  • And I should see "Arrr-verse"
  • When I follow "Arrr-verse"
  • Then I should see "No Fandom"
  • When I follow "Edit Alternate Universe Pirates"
  • And I fill in "MetaTags" with "Alternate Universe"
  • And I press "Save changes"
  • Then I should see "Invalid metatag 'Alternate Universe':"
  • And I should see "Metatag does not exist."
  • And I should not see "Alternate Universe" within "form"
  • When I follow "New Tag"
  • And I fill in "Name" with "Alternate Universe"
  • And I check "Canonical"
  • And I choose "Additional Tag"
  • And I press "Create Tag"
  • And I fill in "Fandoms" with "No Fandom"
  • And I choose "Alternate Universe Pirates" from the "SubTags" autocomplete
  • And I press "Save changes"
  • Then I should see "Tag was updated"
  • And I should see "No Fandom"
  • And the "Canonical" checkbox should be checked
  • When I follow "Alternate Universe Pirates"
  • Then I should see "Alternate Universe" within "div#parent_MetaTag_associations_to_remove_checkboxes"
  • When I edit the tag "Alternate Universe Space Pirates"
  • And I choose "Alternate Universe Pirates" from the "MetaTags" autocomplete
  • And I press "Save changes"
  • Then I should see "Tag was updated"
  • When I follow "Alternate Universe Pirates"
  • Then I should see "Alternate Universe Space Pirates"
  • When I am logged in as a "tag_wrangling" admin
  • And I edit the tag "Alternate Universe Pirates"
  • And I fill in "Synonym of" with "Alternate Universe Pirrrates"
  • And I press "Save changes"
  • Then I should see "Tag was updated"
  • And I should not see "Alternate Universe Space Pirates"
  • And I should not see "Pirate AU"
  • And I should not see "Arrr-verse"
  • When I follow "Edit Alternate Universe Pirrrates"
  • Then I should see "Alternate Universe Space Pirates"
  • And I should see "Pirate AU"
  • And I should see "Arrr-verse"
  • And I should see "Alternate Universe Pirates"
  • When I am logged in as "Enigel" with password "wrangulate!"
  • And I edit the tag "Alternate Universe Pirates"
  • And I follow "New Tag"
  • And I fill in "Name" with "Drabble"
  • And I choose "Additional Tag"
  • And I press "Create Tag"
  • And I follow "New Tag"
  • And I fill in "Name" with "100 words"
  • And I choose "Additional Tag"
  • And I press "Create Tag"
  • And I fill in "Synonym of" with "Drabble"
  • And I press "Save changes"
  • Then I should see "Drabble is not a canonical tag. Please make it canonical before adding synonyms to it."
  • When I fill in "Synonym of" with "No Fandom"
  • And I press "Save changes"
  • Then I should see "No Fandom is a fandom. Synonyms must belong to the same category."

Source: features/tags_and_wrangling/tag_wrangling_freeforms.feature at commit f09caa86, Otwarchive (GPL license).