-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser_journey_flow.feature
352 lines (295 loc) · 13.5 KB
/
user_journey_flow.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
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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
# ===============================================
# Before demo
# 1: Login to admin account to save time
# ===============================================
# Healing Hands
Feature: Signing up as a charity
As a charity in need of more volunteers
So that I can obtain more manpower for my beneficiaries
I want to be able to create an account to create more volunteering opportunities for my employees
Scenario: Register as a charity
Given I am on the 'register' page
And I click on Charity
When I enter my charity details
And I click on "Sign up!"
Then I should see "Thank you for signing up with Ring of Reciprocity."
Scenario: Upload non pdf file
Given I am on the 'register' page
And I click on Charity
When I enter my charity details with a document in the wrong format
And I click on "Sign up!"
Then I should see "Failed to register"
# Hextech Solutions
Feature: Signing up as a corporation
As a corporate volunteer manager
So that I can obtain more opportunities to claim tax relief from IRAS
I want to be able to create an account to create more volunteering opportunities for my employees
Scenario: Register as a corporation
Given I am on the 'register' page
And I click on Corporate
When I enter my company details
And I click on "Sign up!"
Then I should see "Thank you for signing up with Ring of Reciprocity."
Scenario: Upload non pdf file
Given I am on the 'register' page
And I click on Corporate
When I enter my company details with a document in the wrong format
And I click on "Sign up!"
Then I should see "Failed to register"
Feature: Approving corporations and charities as an Administrator
As an administrator
So that requesters have a higher chance of receiving volunteering help
I want to be able to approve of companies and charities who have registered
Background:
Given I have an admin account
Then I login as an admin
Then there are companies and charities for me to approve
Scenario: Approve companies
Given I am on "Approve Inactive Companies" page
And I click on "FriendlyCompany"
Then I should see more details of "FriendlyCompany"
Then I am on "Approve Inactive Companies" page
When I click on "Approve" button for company "FriendlyCompany"
Then I should see message "Company has been approved and email sent."
Scenario: Disable companies
Given I am on "Approve Active Companies" page
And I click on "LoveCompany"
Then I should see more details of "LoveCompany"
Then I am on "Approve Inactive Companies" page
When I click on "Disable" button for company "LoveCompany"
Then I should see message "Company has been disabled."
Scenario: Reject Companies
Given I am on "Approve Inactive Companies" page
And I click on "GraceCompany"
Then I should see more details of "GraceCompany"
Then I am on "Approve Inactive Companies" page
When I click on "Reject" button for company "GraceCompany"
Then I should see message "Company has been rejected."
########################################################################
Scenario: Approve charities
Given I am on "Approve Inactive Charities" page
And I click on "Tasty Charity"
Then I should see more details of "Tasty Charity"
Then I am on "Approve Inactive Charities" page
When I click on "Approve" button for charity "Tasty Charity"
Then I should see message "Charity approved successfully and email sent."
Scenario: Disable charities
Given I am on "Approve Active Charities" page
And I click on "Delightful Charity"
Then I should see more details of "Delightful Charity"
Then I am on "Approve Inactive Charities" page
When I click on "Disable" button for charity "Delightful Charity"
Then I should see message "Charity disabled successfully."
Scenario: Rejected charities
Given I am on "Approve Inactive Charities" page
And I click on "Inexpensive Charity"
Then I should see more details of "Inexpensive Charity"
Then I am on "Approve Inactive Charities" page
When I click on "Reject" button for charity "Inactive Charity"
Then I should see message "Charity rejected successfully."
# Demo purposes
# Need volunteers to distribute food
# Need a few people to help provide and distribute food to the needy. All volunteers welcome!
Feature: Create request
As a user
So that I can receive help
I want to create a request
Background:
Given I have an account
And I login
Scenario: Create request with valid data
Given I want to make new requests
And I fill in the following details:
| Field | Value |
| Title | Test Request |
| Category | Youth Services |
| Date | 2024-12-12 |
| Number of volunteers needed | 5 |
| Start time | 12:00 |
| Duration | 5 |
| Location | POINT(1 1) |
| Description | Looking for someone to help with my backyard garden |
| Incentive provided | Money |
| Incentive | $400 |
When I click on "Create" buttoni
Then I should see "Request was successfully created."
Scenario: Create request with invalid data
Given I want to make new requests
And I fill in the following details:
| Field | Value |
| Title | |
| Category | |
| Date | 2024-01-07 |
| Number of volunteers needed | 5 |
| Start time | 01:10 pm |
| Duration | 5 |
| Location | Singapore Zoo |
| Description | |
| Incentive provided | Money |
| Incentive | $30 |
When I click on "Create" button
Then I should be returned back to new requests page
Feature: Generating code for employees
As a corporate volunteer manager
So that I can allow my employees to register and be associated with my company
I want to be able to generate a code and provide it to them
Background:
Given I have a cvm account
And I login as a cvm
Scenario: Copy code to clipboard
Given I am on the cvm dashboard
When I click on the copy code button
Then the company code should be copied to my clipboard
Scenario: Regenerate code
Given I am on the cvm dashboard
When I click on the regenerate code button
Then I should receive a new company code
# CVM Perspective alr
Feature: Viewing of statistics
As a corporate volunteer manager
So that I can keep track on who is volunteering
I want to be able to see the number of hours that each employee is volunteering for
Background:
Given Willing Hearts is registered with the application
And Willing Hearts is registered with my company
And Jason has completed a request
And Alice has completed a request
And Bob has completed a request
Scenario:
Given I have a cvm account
When I login as a cvm
Then I should 8 hours volunteered this week
Scenario: Viewing of employee statistics
Given I have a cvm account
When I login as a cvm
Then I should see '3' under top employees
Scenario: Viewing of volunteering statistics
Given I have a cvm account
When I login as a cvm
Then I should see 'Jason' before 'Alice' under top employees
And I should see 'Alice' before 'Bob' under top employees
Scenario: Viewing of charities registered with my company
Given I have a cvm account
When I login as a cvm
Then I should see 'Willing Hearts'
Feature: Managing Charities
Background:
Given I have a cvm account
And I login as a cvm
And Willing Hearts is registered with the application
Scenario: Adding a charity without pressing save
Given I click on 'Manage Charities'
And I click on Willing Hearts
When I am on the cvm dashboard
Then I should not see 'Willing Hearts'
Scenario: Adding a charity
Given I click on 'Manage Charities'
And I click on Willing Hearts
When I click on 'Save'
And I am on the cvm dashboard
Then I should see 'Willing Hearts'
Scenario: Remove a charity without pressing save
Given Willing Hearts is registered with my company
And I click on 'Manage Charities'
When I click on Willing Hearts
And I am on the cvm dashboard
Then I should see 'Willing Hearts'
Scenario: Remove a charity
Given Willing Hearts is registered with my company
And I click on 'Manage Charities'
When I click on Willing Hearts
And I click on 'Save'
And I am on the cvm dashboard
Then I should not see 'Willing Hearts'
# Demo
# Darren Chan
#
# Hi! I'm a computer science student at SUTD, my hobbies revolve around computers and I also love all sorts of animals. I go to the gym occasionally and also enjoy play sports.
Feature: Signing up as a corporate volunteer
As a corporate volunteer
So that I can obtain more volunteering opportunities for my company to claim tax relief
I want to be able to register my account under the company
Scenario: Sign up with valid company code
Given I am on the 'register' page
And I click on User
When I enter the details including the code associated with my company
And I click on 'Sign up!'
Then I should see 'Welcome! You have signed up successfully'
And I am on the 'profile' page
And I should see the corporate user icon
Scenario: Sign up with invalid company code
Given I am on the 'register' page
And I click on User
When I enter the details and an inactive company code
And I click on 'Sign up!'
Then I should see 'Company code does not exist'
Feature: Viewing requests as a corporate volunteer
As a corporate volunteer
So that I can help my company claim tax relief and to volunteer to help someone in need
I want to be able to see requests from registered IPCs that my company has approved of
Background:
Given I have a cvm account
And Willing Hearts is registered with the application
And Willing Hearts has put out a request
And there is a request to be applied for
Scenario: IPC is registered with my company
Given I am logged in as a corporate volunteer
And Willing Hearts is registered with my company
When I am on the 'home' page
Then I should not see 'Test Request to Apply'
And I should see 'Willing Hearts request'
Scenario: IPC is not registered with my company
Given I am logged in as a corporate volunteer
When I am on the 'home' page
Then I should not see 'Test Request to Apply'
And I should not see 'Willing Hearts request'
Feature: Differentiating of corporate volunteer applicants
As a charity
So that I can distinguish a corporate volunteer from a normal one
I want to be able to see an indicator that differentiates the applicants
Background:
Given I have an account
And I login
And there is a registered user on the app
And there is a corporate user on the app
And I have a request
And there is an application for my request
And there is an application for my request from a corporate user
Scenario:
Given I am on the 'myrequests' page
When I expand the request
Then I should see 2 applicants
And I should see 1 corporate volunteer applicant
Feature: Managing employees
Background:
Given I have a cvm account
And I login as a cvm
And Jason's account is deactivated
Scenario: Deactivating an account
Given I click on 'Manage Employees'
And I deactivate Alice's account
Then Alice should not be able to log in
Scenario: Activating an account
Given I click on 'Manage Employees'
And I activate Jason's account
Then Jason should be able to log in
Feature: Generate Report
As a corporate volunteer manager
So that I can allow my employees to register and be associated with my company
I want to be able to generate a code and provide it to them
Background:
Given I have a cvm account
And I login as a cvm
Scenario: Generate a report
Given I am on the cvm dashboard
And I click on the date range picker
When I select a range of dates
And I click on 'Download' button
Then a report should be downloaded
Scenario: Generate a report without specifying date range
Given I am on the cvm dashboard
When I click on 'Download' button
Then I should see 'Please enter a date range for the report'