Skip to content

Commit 1b376f5

Browse files
authored
test: validate exception for partial date field (#1182)
* test: added test files * test: exception for partial date field
1 parent a9603ec commit 1b376f5

File tree

3 files changed

+142
-2
lines changed

3 files changed

+142
-2
lines changed

tests/playwright-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test:regression:e2e:epic1": "cross-env TEST_TYPE=RegressionEpic1 npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=@epic1-",
1111
"test:regression:e2e:epic2": "cross-env TEST_TYPE=RegressionEpic2 npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=@epic2-",
1212
"test:regression:e2e:epic3": "cross-env TEST_TYPE=RegressionEpic3 npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=@epic3-",
13-
"test:regression:e2e:epic3Med": "cross-env TEST_TYPE=RegressionEpic3Med npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=@epic3-",
13+
"test:regression:e2e:epic3Med": "cross-env TEST_TYPE=RegressionEpic3Med npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=@epic3-med",
1414
"test:smoke:e2e": "cross-env TEST_TYPE=SMOKE npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=\"@smoke @e2e\"",
1515
"test": "npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=\"@smoke @e2e\"",
1616
"test:dummy": "npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=\"@dummy \"",

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

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

2626

27-
export const runnerBasedEpic3MedTestScenariosAdd = "@DTOSS-4967-01";
27+
export const runnerBasedEpic3MedTestScenariosAdd = "@DTOSS-4967-01|@DTOSS-4975-01"
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
{
2+
"validations": [
3+
{
4+
"validations": {
5+
"apiEndpoint": "api/ExceptionManagementDataService",
6+
"NhsNumber": "9993476447",
7+
"RuleId": 100,
8+
"RuleDescription": "PrimaryCareProviderEffectiveFromDate"
9+
},
10+
"meta": {
11+
"testJiraId": "@DTOSS-4975-01",
12+
"requirementJiraId": "DTOSS-4284",
13+
"additionalTags": "@regression @e2e @epic3-med-priority - Validate exception1 for partial date for 9993476447"
14+
}
15+
},
16+
{
17+
"validations": {
18+
"apiEndpoint": "api/ExceptionManagementDataService",
19+
"NhsNumber": "9993476447",
20+
"RuleId": 101,
21+
"RuleDescription": "CurrentPostingEffectiveFromDate"
22+
},
23+
"meta": {
24+
"testJiraId": "@DTOSS-4975-01",
25+
"requirementJiraId": "DTOSS-4284",
26+
"additionalTags": "@regression @e2e @epic3-med-priority - Validate exception2 for partial date for 9993476447"
27+
}
28+
},
29+
{
30+
"validations": {
31+
"apiEndpoint": "api/ExceptionManagementDataService",
32+
"NhsNumber": "9993476447",
33+
"RuleId": 102,
34+
"RuleDescription": "UsualAddressEffectiveFromDate"
35+
},
36+
"meta": {
37+
"testJiraId": "@DTOSS-4975-01",
38+
"requirementJiraId": "DTOSS-4284",
39+
"additionalTags": "@regression @e2e @epic3-med-priority - Validate exception3 for partial date for 9993476447"
40+
}
41+
},
42+
{
43+
"validations": {
44+
"apiEndpoint": "api/ExceptionManagementDataService",
45+
"NhsNumber": "9993476447",
46+
"RuleId": 103,
47+
"RuleDescription": "TelephoneNumberEffectiveFromDate"
48+
},
49+
"meta": {
50+
"testJiraId": "@DTOSS-4975-01",
51+
"requirementJiraId": "DTOSS-4284",
52+
"additionalTags": "@regression @e2e @epic3-med-priority - Validate exception4 for partial date for 9993476447"
53+
}
54+
},
55+
{
56+
"validations": {
57+
"apiEndpoint": "api/ExceptionManagementDataService",
58+
"NhsNumber": "9993476447",
59+
"RuleId": 104,
60+
"RuleDescription": "MobileNumberEffectiveFromDate"
61+
},
62+
"meta": {
63+
"testJiraId": "@DTOSS-4975-01",
64+
"requirementJiraId": "DTOSS-4284",
65+
"additionalTags": "@regression @e2e @epic3-med-priority - Validate exception5 for partial date for 9993476447"
66+
}
67+
},
68+
{
69+
"validations": {
70+
"apiEndpoint": "api/ExceptionManagementDataService",
71+
"NhsNumber": "9993476447",
72+
"RuleId": 105,
73+
"RuleDescription": "EmailAddressEffectiveFromDate"
74+
},
75+
"meta": {
76+
"testJiraId": "@DTOSS-4975-01",
77+
"requirementJiraId": "DTOSS-4284",
78+
"additionalTags": "@regression @e2e @epic3-med-priority - Validate exception6 for partial date for 9993476447"
79+
}
80+
},
81+
{
82+
"validations": {
83+
"apiEndpoint": "api/ExceptionManagementDataService",
84+
"NhsNumber": "9993476447",
85+
"RuleId": 17,
86+
"RuleDescription": "Date of birth invalid"
87+
},
88+
"meta": {
89+
"testJiraId": "@DTOSS-4975-01",
90+
"requirementJiraId": "DTOSS-4284",
91+
"additionalTags": "@regression @e2e @epic3-med-priority - Validate exception7 for partial date for 9993476447"
92+
}
93+
}
94+
],
95+
"inputParticipantRecord": [
96+
{
97+
"record_type": "ADD",
98+
"change_time_stamp": 20240524000000,
99+
"serial_change_number": 2,
100+
"nhs_number": 9993476447,
101+
"superseded_by_nhs_number": null,
102+
"primary_care_provider": "A81001",
103+
"primary_care_effective_from_date": "20233",
104+
"current_posting": "BD",
105+
"current_posting_effective_from_date": "20230",
106+
"name_prefix": "Ms",
107+
"given_name": "Jackie",
108+
"other_given_name": "Diana",
109+
"family_name": "Steve",
110+
"previous_family_name": "Stevens",
111+
"date_of_birth": "20203",
112+
"gender": 1,
113+
"address_line_1": "123 Trent Road",
114+
"address_line_2": "TRENT ROAD LANE",
115+
"address_line_3": "TRENT CORNER ROAD",
116+
"address_line_4": "Oliver ROAD",
117+
"address_line_5": "OLIVER CORNER ROAD",
118+
"postcode": "AB43 8FJ",
119+
"paf_key": "Z3S4Q5X8",
120+
"address_effective_from_date": "20230",
121+
"reason_for_removal": "",
122+
"reason_for_removal_effective_from_date": "",
123+
"date_of_death": "",
124+
"death_status": null,
125+
"home_telephone_number": "7898908901",
126+
"home_telephone_effective_from_date": "20230",
127+
"mobile_telephone_number": "7898908901",
128+
"mobile_telephone_effective_from_date": "20230",
129+
"email_address": "[email protected]",
130+
"email_address_effective_from_date": "20230",
131+
"preferred_language": "en",
132+
"is_interpreter_required": false,
133+
"invalid_flag": false,
134+
"eligibility": true
135+
}
136+
],
137+
"nhsNumbers": [
138+
"9993476447"
139+
]
140+
}

0 commit comments

Comments
 (0)