/
tag_wrangling_more.feature
83 lines (75 loc) · 3.04 KB
/
tag_wrangling_more.feature
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
77
78
79
80
81
82
83
@tags @tag_wrangling
Feature: Tag wrangling: assigning wranglers, using the filters on the Wranglers page
Scenario: Log in as a tag wrangler and see wrangler pages.
View new tags in your fandoms
Given I have loaded the fixtures
And the following activated tag wranglers exist
| login | password |
| Enigel | wrangulator |
| dizmo | wrangulator |
And I have loaded the "roles" fixture
# accessing tag wrangling pages
When I am logged in as "dizmo" with password "wrangulator"
And I follow "Tag Wrangling"
Then I should see "Wrangling Home"
And I should not see "first fandom"
When I follow "Wranglers"
Then I should see "Tag Wrangling Assignments"
And I should see "first fandom"
When I view the tag "first fandom"
Then I should see "Edit"
When I follow "Edit" within ".header"
Then I should see "Edit first fandom Tag"
# assigning media to a fandom
When I fill in "Medias" with "TV Shows"
And I press "Save changes"
Then I should see "Tag was updated"
When I follow "Tag Wrangling"
Then I should see "Wrangling Home"
And I should not see "first fandom"
When I follow "Wranglers"
Then I should see "Tag Wrangling Assignments"
And I should see "first fandom"
# assigning a fandom to oneself
When I fill in "tag_fandom_string" with "first fandom"
And I press "Assign"
And I follow "Wrangling Home"
And I follow "Wranglers"
Then I should see "first fandom"
And I should see "dizmo" within "ul.wranglers"
Given I add the fandom "first fandom" to the character "Person A"
# checking that wrangling home shows unfilterables
When I follow "Wrangling Home"
Then I should see "first fandom"
And I should see "Unfilterable"
When I follow "first fandom"
Then I should see "Wrangle Tags for first fandom"
And I should see "Characters (1)"
When I log out
And I am logged in as "Enigel" with password "wrangulator"
And I follow "Tag Wrangling"
# assigning another wrangler to a fandom
When I follow "Wranglers"
And I fill in "fandom_string" with "Ghost"
And I press "Filter"
Then I should see "Ghost Soup"
And I should not see "first fandom"
When I select "dizmo" from "assignments_10_"
And I press "Assign"
Then I should see "Wranglers were successfully assigned"
# the filters on the Wranglers page
When I select "TV Shows" from "media_id"
And I fill in "fandom_string" with ""
And I press "Filter"
Then "TV Shows" should be selected within "media_id"
And I should see "first fandom"
And I should not see "second fandom"
When I select "dizmo" from "wrangler_id"
And I press "Filter"
Then I should see "first fandom"
And I should not see "Ghost Soup"
When I select "" from "media_id"
And I press "Filter"
Then "dizmo" should be selected within "wrangler_id"
And I should see "Ghost Soup"
And I should see "first fandom"