forked from otwcode/otwarchive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subscriptions_fandoms.feature
76 lines (66 loc) · 2.77 KB
/
subscriptions_fandoms.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
Feature: Subscriptions
In order to follow aa fandom I like
As a reader
I want to subscribe to it
Scenario: Subscribe to a test fandom when there are no works in it
When I am logged in as "author"
And I post a work with category "M/F"
When I am logged in as "reader"
And I view the "F/F" works index
Then I should see "Subscribe to the feed"
# TODO: If you uncomment the next line, it fails horribly. Is this a genuine bug, or a cucumber error?
# When I follow "Subscribe to the feed"
# Then I should not see "My Work Title"
# And I should not see "Stargate SG-1"
Scenario: Subscribe to a test fandom when there are works in it
When I am logged in as "author"
And I post a work with category "F/F"
When I am logged in as "reader"
And I view the "F/F" works index
Then I should see "Subscribe to the feed"
When I follow "Subscribe to the feed"
Then I should see "My Work Title"
And I should see "Stargate SG-1"
Scenario: Subscribe to a non-test fandom
When I am logged in as "author"
And I post a work with category "Multi"
When I am logged in as "reader"
And I view the "Multi" works index
Then I should not see "Subscribe to the feed"
Scenario: Mystery work is not shown in feed
Given basic tags
And I am logged in as "myname2"
Given I have a hidden collection "Hidden Treasury" with name "hidden_treasury"
When I am logged in as "myname1"
And I post the work "Old Snippet"
And I edit the work "Old Snippet"
And I fill in "Post to Collections / Challenges" with "hidden_treasury"
And I check "F/F"
And I press "Post without preview"
Then I should see "This work is part of an ongoing challenge and will be revealed soon! You can find details here: Hidden Treasury"
When I am logged in as "author"
And I post a work with category "F/F"
When I view the "F/F" works index
When I follow "Subscribe to the feed"
Then I should not see "Old Snippet"
And I should not see "myname1"
And I should see "author"
Scenario: Author of anonymous work is not shown in feed
Given basic tags
And I am logged in as "myname2"
Given I have an anonymous collection "Hidden Treasury" with name "hidden_treasury"
When I am logged in as "myname1"
And I post the work "Old Snippet"
And I edit the work "Old Snippet"
And I fill in "Post to Collections / Challenges" with "hidden_treasury"
And I check "F/F"
And I press "Post without preview"
Then I should see "Anonymous"
And I should see "Collections: Hidden Treasury"
When I am logged in as "author"
And I post a work with category "F/F"
When I view the "F/F" works index
When I follow "Subscribe to the feed"
Then I should see "Old Snippet"
And I should not see "myname1"
And I should see "author"