Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0f1cffdeac
Fetching contributors…

Cannot retrieve contributors at this time

file 241 lines (208 sloc) 10.416 kb
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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
@collections
Feature: Gift Exchange Challenge
In order to have more fics for my fandom
As a humble user
I want to run a gift exchange

Scenario: Create a collection to house a gift exchange
Given I am logged in as "mod1"
And I have standard challenge tags setup
When I set up the collection "My Gift Exchange"
And I select "Gift Exchange" from "challenge_type"
And I submit
Then My Gift Exchange gift exchange should be correctly created

Scenario: Enter settings for a gift exchange
Given I am logged in as "mod1"
And I have set up the gift exchange "My Gift Exchange"
When I fill in gift exchange challenge options
And I submit
Then My Gift Exchange gift exchange should be fully created

Scenario: Open signup in a gift exchange
Given I am logged in as "mod1"
And I have created the gift exchange "My Gift Exchange"
And I am on "My Gift Exchange" gift exchange edit page
When I check "Signup open?"
And I submit
Then I should see "Challenge was successfully updated"
And I should see "Signup: Open" within ".collection .meta"
And I should see "Signup closes:"
Scenario: Gift exchange appears in list of open challenges
Given I am logged in as "mod1"
And I have created the gift exchange "My Gift Exchange"
And I am on "My Gift Exchange" gift exchange edit page
When I check "Signup open?"
And I submit
When I view open challenges
Then I should see "My Gift Exchange"

Scenario: Change timezone for a gift exchange
Given I am logged in as "mod1"
And I have created the gift exchange "My Gift Exchange"
And I am on "My Gift Exchange" gift exchange edit page
When I select "(GMT-09:00) Alaska" from "gift_exchange_time_zone"
And I submit
Then I should see "Challenge was successfully updated"
Then I should find "Alaska"
Scenario: Add a co-mod
Given the following activated users exist
| login |
| comod |
And I am logged in as "mod1"
And I have created the gift exchange "Awesome Gift Exchange"
And I have opened signup for the gift exchange "Awesome Gift Exchange"
When I go to "Awesome Gift Exchange" collection's page
And I follow "Membership"
And I fill in "participants_to_invite" with "comod"
And I press "Submit"
Then I should see "New members invited: comod"

Scenario: Sign up for a gift exchange
Given I am logged in as "mod1"
And I have created the gift exchange "Awesome Gift Exchange"
And I have opened signup for the gift exchange "Awesome Gift Exchange"
When I am logged in as "myname1"
When I sign up for "Awesome Gift Exchange" with combination A
Then I should see "Signup was successfully created"
Scenario: Signups can be seen in the dashboard
Given I am logged in as "mod1"
And I have created the gift exchange "Awesome Gift Exchange"
And I have opened signup for the gift exchange "Awesome Gift Exchange"
When I am logged in as "myname1"
When I sign up for "Awesome Gift Exchange" with combination A
When I am on my user page
Then I should see "Signups (1)"
When I follow "Signups (1)"
Then I should see "Awesome Gift Exchange"
Scenario: Ordinary users cannot see other signups
Given I am logged in as "mod1"
And I have created the gift exchange "Awesome Gift Exchange"
And I have opened signup for the gift exchange "Awesome Gift Exchange"
When I am logged in as "myname1"
When I sign up for "Awesome Gift Exchange" with combination A
When I go to the collections page
And I follow "Awesome Gift Exchange"
Then I should not see "Signups"
Scenario: Mod can view signups
Given I am logged in as "mod1"
And I have created the gift exchange "Awesome Gift Exchange"
And I have opened signup for the gift exchange "Awesome Gift Exchange"
And everyone has signed up for the gift exchange "Awesome Gift Exchange"
When I am logged in as "mod1"
And I go to "Awesome Gift Exchange" collection's page
And I follow "Signups"
Then I should see "myname4" within "#main"
And I should see "myname3" within "#main"
And I should see "myname2" within "#main"
And I should see "myname1" within "#main"
And I should see "Something else weird"
And I should see "Alternate Universe - Historical"
Scenario: Cannot generate matches while signup is open
Given I am logged in as "mod1"
And I have created the gift exchange "Awesome Gift Exchange"
And I have opened signup for the gift exchange "Awesome Gift Exchange"
And everyone has signed up for the gift exchange "Awesome Gift Exchange"
When I am logged in as "mod1"
And I go to "Awesome Gift Exchange" collection's page
And I follow "Matching"
Then I should see "You can't generate matches while signup is still open."
And I should not see "Generate Potential Matches"
Scenario: Matches can be generated
Given I am logged in as "mod1"
And I have created the gift exchange "Awesome Gift Exchange"
And I have opened signup for the gift exchange "Awesome Gift Exchange"
And everyone has signed up for the gift exchange "Awesome Gift Exchange"
When I close signups for "Awesome Gift Exchange"
When I follow "Matching"
When I follow "Generate Potential Matches"
Then I should see "Beginning generation of potential matches. This may take some time, especially if your challenge is large."
Given the system processes jobs
And I wait 3 seconds
When I reload the page
Then I should see "Main Assignments"
Scenario: Assignments can be sent

Given I am logged in as "mod1"
And I have created the gift exchange "Awesome Gift Exchange"
And I have opened signup for the gift exchange "Awesome Gift Exchange"
And everyone has signed up for the gift exchange "Awesome Gift Exchange"
And I have generated matches for "Awesome Gift Exchange"
When I follow "Send Assignments"
Then I should see "Assignments are now being sent out"
Given the system processes jobs
And I wait 3 seconds
When I reload the page
Then I should not see "Assignments are now being sent out"
# 4 users and the mod should get emails :)
And 1 email should be delivered to "mod1"
And the email should contain "You have received a message about your collection"
And 1 email should be delivered to "myname1"
And 1 email should be delivered to "myname2"
And 1 email should be delivered to "myname3"
And 1 email should be delivered to "myname4"
And the email should link to "Awesome Gift Exchange" collection's url
And the email should link to myname1's user url
And the email should link to the works tagged "Stargate Atlantis"
Scenario: User signs up for two gift exchanges at once #'
Given I am logged in as "mod1"
And I have created the gift exchange "Awesome Gift Exchange"
And I have opened signup for the gift exchange "Awesome Gift Exchange"
And everyone has signed up for the gift exchange "Awesome Gift Exchange"
And I have generated matches for "Awesome Gift Exchange"
And I have sent assignments for "Awesome Gift Exchange"
Given I have created the gift exchange "Second Challenge" with name "testcoll2"
And I have opened signup for the gift exchange "Second Challenge"
And everyone has signed up for the gift exchange "Second Challenge"
And I have generated matches for "Second Challenge"
And I have sent assignments for "Second Challenge"
When I am logged in as "myname1"
And I start to fulfill my assignment
# This is in fact a bug - only one of them should be checked
# TODO: Uncomment when the intermittent bug has been fixed
#Then the "Awesome Gift Exchange (myname3)" checkbox should be checked
# And the "Second Challenge (myname3)" checkbox should be checked
Scenario: User has more than one pseud on signup form
Given "myname1" has the pseud "othername"
Given I am logged in as "mod1"
And I have created the gift exchange "Sensitive Gift Exchange"
And I have opened signup for the gift exchange "Sensitive Gift Exchange"
When I am logged in as "myname1"
When I start to sign up for "Sensitive Gift Exchange" gift exchange
Then I should see "othername"
Scenario: User tries to change pseud on a challenge signup and should not be able to, as it would break matching
Given "myname1" has the pseud "othername"
Given I am logged in as "mod1"
And I have created the gift exchange "Sensitive Gift Exchange"
And I have opened signup for the gift exchange "Sensitive Gift Exchange"
When I am logged in as "myname1"
When I sign up for "Sensitive Gift Exchange" with combination A
Then I should see "Signup was successfully created"
And I should see "Signup for myname1"
When I edit my signup for "Sensitive Gift Exchange"
Then I should not see "othername"
Scenario: User can see their assignment
Given I am logged in as "mod1"
And I have created the gift exchange "Awesome Gift Exchange"
And I have opened signup for the gift exchange "Awesome Gift Exchange"
And everyone has signed up for the gift exchange "Awesome Gift Exchange"
And I have generated matches for "Awesome Gift Exchange"
And I have sent assignments for "Awesome Gift Exchange"
When I am logged in as "myname1"
And I go to my user page
And I follow "Assignments"
Then I should see "Awesome Gift Exchange"
Scenario: User fulfills their assignment and it shows on their assigments page as fulfilled
Given I am logged in as "mod1"
And I have created the gift exchange "Awesome Gift Exchange"
And I have opened signup for the gift exchange "Awesome Gift Exchange"
And everyone has signed up for the gift exchange "Awesome Gift Exchange"
And I have generated matches for "Awesome Gift Exchange"
And I have sent assignments for "Awesome Gift Exchange"
When I am logged in as "myname1"
And I fulfill my assignment
When I go to my user page
And I follow "Assignments"
Then I should see "Awesome Gift Exchange"
And I should not see "Not yet posted"
And I should see "Fulfilled Story"

Scenario: Download signups CSV
Given I am logged in as "mod1"
And I have created the gift exchange "My Gift Exchange"

When I go to the "My Gift Exchange" signups page
And I follow "Download (CSV)"
Then I should get a file with ending and type csv


Something went wrong with that request. Please try again.