Skip to content

Commit 5ea03d2

Browse files
authored
test: exception when add only demographic n participant updated (#1222)
* test: check add exception record updated in demographic and participant table * test: check no record present in cohort table
1 parent 7b7a540 commit 5ea03d2

File tree

2 files changed

+189
-1
lines changed

2 files changed

+189
-1
lines changed

tests/playwright-tests/src/tests/e2e/epic3-medpriority-tests/epic3-med-priority-testsuite-migrated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
// This equates to "@epic3-med" tags, configured in the package.json at the playwright-tests root location.
2525

2626

27-
export const runnerBasedEpic3MedTestScenariosAdd = "@DTOSS-4967-01|@DTOSS-4975-01|@DTOSS-6325-01|@DTOSS-5374-01|@DTOSS-6320-01"
27+
export const runnerBasedEpic3MedTestScenariosAdd = "@DTOSS-4967-01|@DTOSS-4975-01|@DTOSS-6325-01|@DTOSS-5374-01|@DTOSS-6320-01|@DTOSS-5578-01"
2828

2929
export const runnerBasedEpic3MedTestScenariosAmended = "@DTOSS-5286-01|@DTOSS-5579-01|@DTOSS-5799-01"
Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
{
2+
"validations": [
3+
{
4+
"validations": {
5+
"apiEndpoint": "api/ParticipantDemographicDataService",
6+
"NhsNumber": 9990755078,
7+
"PrimaryCareProvider": "FB1065"
8+
},
9+
"meta": {
10+
"testJiraId": "@DTOSS-5578-01",
11+
"requirementJiraId": "DTOSS-3663",
12+
"additionalTags": "@regression @e2e @epic3-med-priority - Exception when Add takes place with incorrect GP practice code - Check Demographic updated with incorrect GP practice code as FB1065 for NHS Participant 9990755078"
13+
}
14+
},
15+
{
16+
"validations": {
17+
"apiEndpoint": "api/ParticipantDemographicDataService",
18+
"NhsNumber": 9990792909,
19+
"PrimaryCareProvider": "FB1065"
20+
},
21+
"meta": {
22+
"testJiraId": "@DTOSS-5578-01",
23+
"requirementJiraId": "DTOSS-3663",
24+
"additionalTags": "@regression @e2e @epic3-med-priority - Exception when Add takes place with incorrect GP practice code - Check Demographic updated with incorrect GP practice code as FB1065 for NHS Participant 9990792909"
25+
}
26+
},
27+
{
28+
"validations": {
29+
"apiEndpoint": "api/ParticipantManagementDataService",
30+
"NHSNumber": 9990792909,
31+
"RecordType": "ADD"
32+
},
33+
"meta": {
34+
"testJiraId": "@DTOSS-5578-01",
35+
"requirementJiraId": "DTOSS-3663",
36+
"additionalTags": "@regression @e2e @epic3-med-priority - Exception when Add takes place with incorrect GP practice code - Check Participant updated with record type ADD for NHS Participant 9990792909"
37+
}
38+
},
39+
{
40+
"validations": {
41+
"apiEndpoint": "api/ParticipantManagementDataService",
42+
"NHSNumber": 9990755078,
43+
"RecordType": "ADD"
44+
},
45+
"meta": {
46+
"testJiraId": "@DTOSS-5578-01",
47+
"requirementJiraId": "DTOSS-3663",
48+
"additionalTags": "@regression @e2e @epic3-med-priority - Exception when Add takes place with incorrect GP practice code - Check Participant updated with record type ADD for NHS Participant 9990755078"
49+
}
50+
},
51+
{
52+
"validations": {
53+
"apiEndpoint": "api/ExceptionManagementDataService",
54+
"NhsNumber": "9990755078",
55+
"RuleId": 3601,
56+
"RuleDescription": "Invalid primary care provider GP practice code"
57+
},
58+
"meta": {
59+
"testJiraId": "@DTOSS-5578-01",
60+
"requirementJiraId": "DTOSS-3663",
61+
"additionalTags": "@regression @e2e @epic3-med-priority - Exception when Add takes place with incorrect GP practice code - Check Exception table for NHS Participant 9990755078 with RuleId 3601 and RuleDescription Invalid primary care provider GP practice code"
62+
}
63+
},
64+
{
65+
"validations": {
66+
"apiEndpoint": "api/ExceptionManagementDataService",
67+
"NhsNumber": "9990792909",
68+
"RuleId": 3601,
69+
"RuleDescription": "Invalid primary care provider GP practice code"
70+
},
71+
"meta": {
72+
"testJiraId": "@DTOSS-5578-01",
73+
"requirementJiraId": "DTOSS-3663",
74+
"additionalTags": "@regression @e2e @epic3-med-priority - Exception when Add takes place with incorrect GP practice code - Check Exception table for NHS Participant 9990792909 with RuleId 3601 and RuleDescription Invalid primary care provider GP practice code"
75+
}
76+
},
77+
{
78+
"validations": {
79+
"apiEndpoint": "api/CohortDistributionDataService",
80+
"NHSNumber": "9990755078",
81+
"expectedCount": 0
82+
},
83+
"meta": {
84+
"testJiraId": "@DTOSS-5578-01",
85+
"requirementJiraId": "DTOSS-3663",
86+
"additionalTags": "@regression @e2e @epic3-med-priority - Exception when Add takes place with incorrect GP practice code - Check Cohort Distribution table for NHS Participant 9990755078 - Expecting no cohort distribution record"
87+
}
88+
},
89+
{
90+
"validations": {
91+
"apiEndpoint": "api/CohortDistributionDataService",
92+
"NHSNumber": "9990792909",
93+
"expectedCount": 0
94+
},
95+
"meta": {
96+
"testJiraId": "@DTOSS-5578-01",
97+
"requirementJiraId": "DTOSS-3663",
98+
"additionalTags": "@regression @e2e @epic3-med-priority - Exception when Add takes place with incorrect GP practice code - Check Cohort Distribution table for NHS Participant 9990792909 - Expecting no cohort distribution record"
99+
}
100+
}
101+
],
102+
"inputParticipantRecord": [
103+
{
104+
"record_type": "ADD",
105+
"change_time_stamp": null,
106+
"serial_change_number": 1,
107+
"nhs_number": 9990755078,
108+
"superseded_by_nhs_number": null,
109+
"primary_care_provider": "FB1065",
110+
"primary_care_effective_from_date": "20130319",
111+
"current_posting": "CH",
112+
"current_posting_effective_from_date": "20130319",
113+
"name_prefix": "WCOM",
114+
"given_name": "NewTest1",
115+
"other_given_name": "Test",
116+
"family_name": "Adani1",
117+
"previous_family_name": "Test2",
118+
"date_of_birth": "19700101",
119+
"gender": 1,
120+
"address_line_1": "247 SpaightSpaightSpTeeeeeeest Road",
121+
"address_line_2": "Eastbourne",
122+
"address_line_3": "Test",
123+
"address_line_4": "Chelmsford",
124+
"address_line_5": "United Kingdom",
125+
"postcode": "AB43 8FJ",
126+
"paf_key": "Z3S4Q5X9",
127+
"address_effective_from_date": "20130319",
128+
"reason_for_removal": null,
129+
"reason_for_removal_effective_from_date": null,
130+
"date_of_death": null,
131+
"death_status": null,
132+
"home_telephone_number": "01619999999",
133+
"home_telephone_effective_from_date": "20130319",
134+
"mobile_telephone_number": "07888888888",
135+
"mobile_telephone_effective_from_date": "20240501",
136+
"email_address": "[email protected]",
137+
"email_address_effective_from_date": null,
138+
"preferred_language": "en",
139+
"is_interpreter_required": false,
140+
"invalid_flag": false,
141+
"eligibility": true
142+
},
143+
{
144+
"record_type": "ADD",
145+
"change_time_stamp": null,
146+
"serial_change_number": 2,
147+
"nhs_number": 9990792909,
148+
"superseded_by_nhs_number": null,
149+
"primary_care_provider": "FB1065",
150+
"primary_care_effective_from_date": "20130319",
151+
"current_posting": "CH",
152+
"current_posting_effective_from_date": "20130319",
153+
"name_prefix": "WCOM",
154+
"given_name": "NewTest2",
155+
"other_given_name": "Test",
156+
"family_name": "Adani2",
157+
"previous_family_name": "Test2",
158+
"date_of_birth": "19700101",
159+
"gender": 1,
160+
"address_line_1": "248 SpaightSpaightSpTeeeeeeest Road",
161+
"address_line_2": "Eastbourne",
162+
"address_line_3": "Test",
163+
"address_line_4": "Chelmsford",
164+
"address_line_5": "United Kingdom",
165+
"postcode": "AB43 8FJ",
166+
"paf_key": "Z3S4Q5X9",
167+
"address_effective_from_date": "20130319",
168+
"reason_for_removal": null,
169+
"reason_for_removal_effective_from_date": null,
170+
"date_of_death": null,
171+
"death_status": null,
172+
"home_telephone_number": "01619999999",
173+
"home_telephone_effective_from_date": "20130319",
174+
"mobile_telephone_number": "07888888888",
175+
"mobile_telephone_effective_from_date": "20240501",
176+
"email_address": "[email protected]",
177+
"email_address_effective_from_date": null,
178+
"preferred_language": "en",
179+
"is_interpreter_required": false,
180+
"invalid_flag": false,
181+
"eligibility": true
182+
}
183+
],
184+
"nhsNumbers": [
185+
"9990755078",
186+
"9990792909"
187+
]
188+
}

0 commit comments

Comments
 (0)