forked from global-121/121-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Delete_people_affected.feature
26 lines (23 loc) · 1.68 KB
/
Delete_people_affected.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
@portal
Feature: Delete people affected (extension of View_and_Manage_people_affected.feature)
Background:
Given a logged-in user with "RegistrationDELETE" permission
And the "active phase" is "registration" or "inclusion"
Scenario: Use bulk-action "delete PA"
Given the generic "select bulk action" scenario (see View_and_Manage_people_affected.feature)
When user selects the "delete PA" action
Then all rows except PAs with status "included", "completed", or "paused" should be eligible
Scenario: Confirm "delete PA" action
Given the generic "confirm apply action" scenario (see View_and_Manage_people_affected.feature)
When the "bulk action" is "delete PA"
Then the "Pop up" to confirm will open
And it mentions the selected number of PAs to delete
And it mentions an additional explanation sentence
When the user confirms
Then the PA will be switched to status "deleted"
And this means it will no longer be visible in any of the phases, also not through "filter by status: all"
And the selected registrations will be anonymized in the database (field "phoneNumber")
And some related entities will be deleted: "note", "registration_data", "people_affected_app_data", "latest_message", "twilio_message", "whatsapp_pending_message", "try_whatsapp"
And some related entities will be anonymized: "intersolve_voucher" (field "whatsappPhoneNumber"), "safaricom_request"
And some related entities will be untouched as they contain no PII: e.g. "transactions", "registration-status-changes", "imagecode-export-vouchers", "imagecode"
And some related entities should be anonymized, but are not yet right now: "at_notification", "belcash_request"