Tag Wrangling - Characters
Scenario: character wrangling - syns, mergers, characters, autocompletes
- Given the following activated tag wrangler exists
login password Enigel wrangulate! - And basic tags
- And a fandom exists with name: "
Doctor Who", canonical: true - And a relationship exists with name: "
First Doctor/TARDIS", canonical: true - And I am logged in as "
Enigel" with password "wrangulate!" - When I follow "
Tag Wrangling" - And I follow "
New Tag" - And I fill in "
Name" with "The First Doctor" - And I choose "
Character" - 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 "The Doctor (1st)" - And I choose "
Character" - 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 am on the search tags page
- And all indexing jobs have been run
- And I fill in "
Tag name" with "Doctor" - And I press "
Search Tags" - Then I should see "
The First Doctor" - And I should see "
The Doctor (1st)" - And I should not see "
The Doctor (1st)" within "span.canonical" - When I edit the tag "
The Doctor (1st)" - And I fill in "
Synonym of" with "The First Doctor" - And I press "
Save changes" - Then I should see "
Tag was updated" - When I follow "
Edit The First Doctor" - Then I should not see "
Make tag non-canonical and unhook all associations" - Given I am logged in as a "
tag_wrangling" admin - When I edit the tag "
The First Doctor" - Then I should see "
Make tag non-canonical and unhook all associations" - And I should see "
The Doctor (1st)" - And the "
Canonical" checkbox should be checked and disabled - When I fill in "
Synonym of" with "First Doctor" - And I press "
Save changes" - Then I should see "
Tag was updated" - And I should not see "
Synonyms" - When I follow "
Edit First Doctor" - When I am logged in as "
Enigel" with password "wrangulate!" - And I go to the new work page
- And I fill in the basic work information for "
Silliness" - And I fill in "
Fandoms" with "Doctor Who" - And I fill in "
Characters" with "1st Doctor, One" - And I press "
Post" - Then I should see "
Work was successfully posted." - When I follow "
1st Doctor" - And I follow "
Edit" - And I enter "
First" in the "Synonym of" autocomplete field - Then I should see "
First Doctor" in the autocomplete - But I should not see "
The First Doctor" in the autocomplete - When I choose "
First Doctor" from the "Synonym of" autocomplete - And I choose "
Doctor Who" from the "Fandoms" autocomplete - And I press "
Save changes" - Then I should see "
Tag was updated" - When I follow "
Edit First Doctor" - Then I should see "
Doctor Who" - And the "
Canonical" checkbox should be disabled - And all indexing jobs have been run
- When I choose "
One" from the "tag_merger_string_autocomplete" autocomplete - And I fill in "
Relationships" with "First Doctor/TARDIS" - And I press "
Save changes" - Then I should see "
Tag was updated" - And I should see "
One" - And I should see "
First Doctor/TARDIS" - When I follow "
One" - Then I should see "
Doctor Who" - But I should not see "
First Doctor/TARDIS" within ".tags" - When I follow "
Edit First Doctor" - And I fill in "
MetaTags" with "The Doctor (DW)" - And I press "
Save changes" - Then I should see "
Invalid metatag 'The Doctor (DW)':" - And I should see "
Metatag does not exist." - And I should not see "
The Doctor (DW)" within "form" - When I follow "
New Tag" - And I fill in "
Name" with "The Doctor (DW)" - And I check "
Canonical" - And I choose "
Character" - And I press "
Create Tag" - And I choose "
First Doctor" from the "SubTags" autocomplete - And I press "
Save changes" - Then I should see "
Tag was updated" - When I follow "
First Doctor" - Then I should see "
The Doctor (DW)" - When I follow "
New Tag" - And I fill in "
Name" with "John Smith" - And I choose "
Character" - And I check "
Canonical" - And I press "
Create Tag" - And I fill in "
MetaTags" with "First Doctor" - And I press "
Save changes" - Then I should see "
Tag was updated" - When I follow "
First Doctor" - Then I should see "
John Smith" - And I should see "
The Doctor" - When I am logged in as a "
tag_wrangling" admin - And I edit the tag "
First Doctor" - And I fill in "
Synonym of" with "First Doctor (DW)" - And I press "
Save changes" - Then I should see "
Tag was updated" - And I should not see "
John Smith" - And I should not see "
The Doctor (1st)" - And I should not see "
1st Doctor" - And I should not see "
One" - And I should not see "
The Doctor (DW)" - When I follow "
Edit First Doctor (DW)" - Then I should see "
John Smith" - And I should see "
First Doctor" within "div#child_Merger_associations_to_remove_checkboxes" - And I should see "
The Doctor (1st)" - And I should see "
1st Doctor" - And I should see "
One" within "div#child_Merger_associations_to_remove_checkboxes" - And I should see "
The Doctor (DW)" - When I am logged in as "
Enigel" with password "wrangulate!" - And I edit the tag "
First Doctor" - And I follow "
New Tag" - And I fill in "
Name" with "Eleventh Doctor" - And I choose "
Character" - And I press "
Create Tag" - And I follow "
New Tag" - And I fill in "
Name" with "Eleven" - And I choose "
Character" - And I press "
Create Tag" - And I fill in "
Synonym of" with "Eleventh Doctor" - And I press "
Save changes" - Then I should see "
Eleventh Doctor is not a canonical tag. Please make it canonical before adding synonyms to it." - When I fill in "
Synonym of" with "Doctor Who" - And I press "
Save changes" - Then I should see "
Doctor Who is a fandom. Synonyms must belong to the same category."
Source: features/tags_and_wrangling/tag_wrangling_characters.feature at commit f09caa86, Otwarchive (GPL license).