-
Notifications
You must be signed in to change notification settings - Fork 14
/
Export_Payment_Details.feature
41 lines (37 loc) · 2.82 KB
/
Export_Payment_Details.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
@portal
Feature: Export payment data
Scenario: Viewing the export options
Given a logged-in user with "RegistrationPersonalEXPORT", "PaymentREAD" and "PaymentTransactionREAD" permissions
When the user views the "payment" page
Then the user sees an "Export payment data" component
And the dropdown contains an option for all closed payments, and a list of all payments, with number, "open" or "closed" and date
Scenario: Export payment report before payment
Given a logged-in user with "RegistrationPersonalEXPORT", "PaymentREAD" and "PaymentTransactionREAD" permissions
Given the payment has not taken place
When the user selects the first "open" payment from the dropdown-list
Then the "export report" button is changed to the "export included people affected" button
When the user clicks the "export included people affected" button
Then an Excel-file is downloaded
And it shows a list of the registrations that are "included"
And - if program and user have scope - then it shows only the PAs within the scope of the user
And it shows the "name" and other program-attributes to be able to identify people
And it shows the dates at which the person reached each status, to be able to assess the trajectory towards inclusion
And it shows all program questions which have "included" as "export" attribute
And it shows all program custom attributes which have "included" as "export" attribute
And the "export inclusion list" button remains enabled, so the action can be repeated infinitely
And if no "included" registrations then an alert is shown that "no data can be downloaded"
Scenario: Export payment report after payment
Given a logged-in user with "RegistrationPersonalEXPORT", "PaymentREAD" and "PaymentTransactionREAD" permissions
Given the payment has taken place
When the user selects a "closed" payment from the dropdown-list
Then the "export report" button is enabled
When the user clicks the "export report" button
Then an Excel-file is dowloaded
And it shows a list of the registrations that have been paid out
And - if program and user have scope - then it shows only the PAs within the scope of the user
And "transaction" data: "payment", "timestamp", "amount" (multiplication of "paymentAmountMultiplier" and "transfer value"), "status", "errorMessage", "financialServiceProvider"
And "registration" data: "referenceId", "phoneNumber" and any defined program-questions, fsp-questions and program-custom-attributes that have "payment" as part of the "export" attribute
Scenario: Viewing the export options without permission
Given a logged-in user without "RegistrationPersonalEXPORT", "PaymentREAD" and "PaymentTransactionREAD" permissions
When the user views the "payment" page
Then the "Export payment data" component is not visible