Skip to content

Commit dfe0f74

Browse files
PUB-3044 - Add new High Court list types (#1566)
* Add new list types * Update tests * Update tests * Update known issues * Fix list name * Fix typo in test * Fix typo in list shortened name --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 82e7520 commit dfe0f74

File tree

5 files changed

+73
-2
lines changed

5 files changed

+73
-2
lines changed

src/main/resources/listLookup.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,5 +967,55 @@
967967
"restrictedProvenances": [],
968968
"defaultSensitivity": "CLASSIFIED",
969969
"isNonStrategic": false
970+
},
971+
"HIGH_COURT_CIVIL_DAILY_CAUSE_LIST": {
972+
"friendlyName": "High Court Civil Daily Cause List",
973+
"welshFriendlyName": "Rhestr Achosion Dyddiol Sifil yr Uchel Lys",
974+
"shortenedFriendlyName": "High Court Civil Daily Cause List",
975+
"url": "high-court-civil-daily-list",
976+
"jurisdictionTypes": ["High Court"],
977+
"restrictedProvenances": [],
978+
"defaultSensitivity": "",
979+
"isNonStrategic": false
980+
},
981+
"HIGH_COURT_FAMILY_DAILY_CAUSE_LIST": {
982+
"friendlyName": "High Court Family Daily Cause List",
983+
"welshFriendlyName": "Rhestr Achosion Dyddiol Teulu yr Uchel Lys",
984+
"shortenedFriendlyName": "High Court Family Daily Cause List",
985+
"url": "high-court-family-daily-list",
986+
"jurisdictionTypes": ["High Court of the Family Division"],
987+
"restrictedProvenances": [],
988+
"defaultSensitivity": "",
989+
"isNonStrategic": false
990+
},
991+
"BUSINESS_AND_PROPERTY_DAILY_CAUSE_LIST": {
992+
"friendlyName": "Business & Property Daily Cause List",
993+
"welshFriendlyName": "Rhestr Achosion Dyddiol Busnes ac Eiddo",
994+
"shortenedFriendlyName": "Business & Property Daily Cause List",
995+
"url": "business-and-property-daily-list",
996+
"jurisdictionTypes": ["High Court"],
997+
"restrictedProvenances": [],
998+
"defaultSensitivity": "",
999+
"isNonStrategic": false
1000+
},
1001+
"CIRCUIT_COMMERCIAL_COURT_DAILY_CAUSE_LIST": {
1002+
"friendlyName": "Circuit Commercial Court Daily Cause List",
1003+
"welshFriendlyName": "Rhestr Achosion Dyddiol Llys Masnachol Cylchdaith",
1004+
"shortenedFriendlyName": "Circuit Commercial Court Daily Cause List",
1005+
"url": "circuit-commercial-court-daily-list",
1006+
"jurisdictionTypes": ["High Court"],
1007+
"restrictedProvenances": [],
1008+
"defaultSensitivity": "",
1009+
"isNonStrategic": false
1010+
},
1011+
"TECHNOLOGY_AND_CONSTRUCTION_COURT_DAILY_CAUSE_LIST": {
1012+
"friendlyName": "Technology and Construction Court Daily Cause List",
1013+
"welshFriendlyName": "Rhestr Achosion Dyddiol Llys Technoleg ac Adeiladwaith",
1014+
"shortenedFriendlyName": "Technology and Construction Court Daily Cause List",
1015+
"url": "technology-and-construction-court-daily-list",
1016+
"jurisdictionTypes": ["High Court"],
1017+
"restrictedProvenances": [],
1018+
"defaultSensitivity": "",
1019+
"isNonStrategic": false
9701020
}
9711021
}

src/test/unit/service/ManualUploadService.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ describe('Manual upload service', () => {
149149

150150
it('should build form data list subtypes when not non-strategic', async () => {
151151
const data = await manualUploadService.buildFormData(englishLanguage, false, undefined);
152-
expect(data['listSubtypes'].length).to.equal(30);
152+
expect(data['listSubtypes'].length).to.equal(35);
153+
153154
expect(data['listSubtypes'][0]).to.deep.equal({
154155
text: '<Please choose a list type>',
155156
value: 'EMPTY',

src/test/unit/service/PublicationService.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe('Publication service', () => {
179179

180180
it('should return list types', () => {
181181
const listTypes = publicationService.getListTypes();
182-
expect(listTypes.size).to.equal(93);
182+
expect(listTypes.size).to.equal(98);
183183

184184
const sjpResult = listTypes.get('SJP_PUBLIC_LIST');
185185
expect(sjpResult['friendlyName']).to.equal('Single Justice Procedure Public List (Full List)');

src/test/unit/service/SubscriptionService.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,7 @@ describe('generateListTypesForCourts', () => {
997997
const listKeysC = Object.keys(result['C']);
998998
expect(listKeysC).toEqual([
999999
'CHANCERY_APPEALS_CHD_DAILY_CAUSE_LIST',
1000+
'CIRCUIT_COMMERCIAL_COURT_DAILY_CAUSE_LIST',
10001001
'CIVIL_AND_FAMILY_DAILY_CAUSE_LIST',
10011002
'CIVIL_COURTS_RCJ_DAILY_CAUSE_LIST',
10021003
'CIVIL_DAILY_CAUSE_LIST',
@@ -1046,6 +1047,7 @@ describe('generateListTypesForCourts', () => {
10461047
const listKeysC = Object.keys(result['C']);
10471048
expect(listKeysC).toEqual([
10481049
'CHANCERY_APPEALS_CHD_DAILY_CAUSE_LIST',
1050+
'CIRCUIT_COMMERCIAL_COURT_DAILY_CAUSE_LIST',
10491051
'CIVIL_AND_FAMILY_DAILY_CAUSE_LIST',
10501052
'CIVIL_COURTS_RCJ_DAILY_CAUSE_LIST',
10511053
'CIVIL_DAILY_CAUSE_LIST',
@@ -1197,6 +1199,7 @@ describe('generateListTypeForCourts', () => {
11971199
const listKeysC = Object.keys(result['C']);
11981200
expect(listKeysC).toEqual([
11991201
'CHANCERY_APPEALS_CHD_DAILY_CAUSE_LIST',
1202+
'CIRCUIT_COMMERCIAL_COURT_DAILY_CAUSE_LIST',
12001203
'CIVIL_AND_FAMILY_DAILY_CAUSE_LIST',
12011204
'CIVIL_COURTS_RCJ_DAILY_CAUSE_LIST',
12021205
'CIVIL_DAILY_CAUSE_LIST',
@@ -1236,6 +1239,7 @@ describe('generateListTypeForCourts', () => {
12361239
const listKeysC = Object.keys(result['C']);
12371240
expect(listKeysC).toEqual([
12381241
'CHANCERY_APPEALS_CHD_DAILY_CAUSE_LIST',
1242+
'CIRCUIT_COMMERCIAL_COURT_DAILY_CAUSE_LIST',
12391243
'CIVIL_AND_FAMILY_DAILY_CAUSE_LIST',
12401244
'CIVIL_COURTS_RCJ_DAILY_CAUSE_LIST',
12411245
'CIVIL_DAILY_CAUSE_LIST',

src/test/unit/views/subscription-configure-list.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ describe('Subscription Configure List', () => {
100100
'Admiralty Court (King’s Bench Division) Daily Cause List',
101101
'Birmingham Administrative Court Daily Cause List',
102102
'Bristol and Cardiff Administrative Court Daily Cause List',
103+
'Business &amp; Property Daily Cause List',
103104
'Business List (Chancery Division) Daily Cause List',
104105
'Chancery Appeals (Chancery Division) Daily Cause List',
106+
'Circuit Commercial Court Daily Cause List',
105107
'Civil and Family Daily Cause List',
106108
'Civil Courts at the RCJ Daily Cause List',
107109
'Civil Daily Cause List',
@@ -112,6 +114,7 @@ describe('Subscription Configure List', () => {
112114
'Court of Appeal (Criminal Division) Daily Cause List',
113115
'Family Division of the High Court Daily Cause List',
114116
'Financial List (Chancery Division/King’s Bench Division/Commercial Court) Daily Cause List',
117+
'High Court Civil Daily Cause List',
115118
'Insolvency &amp; Companies Court (Chancery Division) Daily Cause List',
116119
'Intellectual Property (Chancery Division) Daily Cause List',
117120
'Intellectual Property and Enterprise Court Daily Cause List',
@@ -141,6 +144,7 @@ describe('Subscription Configure List', () => {
141144
'Single Justice Procedure Public List (Full List)',
142145
'Single Justice Procedure Public List (New Cases)',
143146
'Technology and Construction Court (King’s Bench Division) Daily Cause List',
147+
'Technology and Construction Court Daily Cause List',
144148
];
145149

146150
const tableRows = htmlRes
@@ -165,8 +169,10 @@ describe('Subscription Configure List', () => {
165169
'ADMIRALTY_COURT_KB_DAILY_CAUSE_LIST',
166170
'BIRMINGHAM_ADMINISTRATIVE_COURT_DAILY_CAUSE_LIST',
167171
'BRISTOL_AND_CARDIFF_ADMINISTRATIVE_COURT_DAILY_CAUSE_LIST',
172+
'BUSINESS_AND_PROPERTY_DAILY_CAUSE_LIST',
168173
'BUSINESS_LIST_CHD_DAILY_CAUSE_LIST',
169174
'CHANCERY_APPEALS_CHD_DAILY_CAUSE_LIST',
175+
'CIRCUIT_COMMERCIAL_COURT_DAILY_CAUSE_LIST',
170176
'CIVIL_AND_FAMILY_DAILY_CAUSE_LIST',
171177
'CIVIL_COURTS_RCJ_DAILY_CAUSE_LIST',
172178
'CIVIL_DAILY_CAUSE_LIST',
@@ -177,6 +183,7 @@ describe('Subscription Configure List', () => {
177183
'COURT_OF_APPEAL_CRIMINAL_DAILY_CAUSE_LIST',
178184
'FAMILY_DIVISION_HIGH_COURT_DAILY_CAUSE_LIST',
179185
'FINANCIAL_LIST_CHD_KB_DAILY_CAUSE_LIST',
186+
'HIGH_COURT_CIVIL_DAILY_CAUSE_LIST',
180187
'INSOLVENCY_AND_COMPANIES_COURT_CHD_DAILY_CAUSE_LIST',
181188
'INTELLECTUAL_PROPERTY_LIST_CHD_DAILY_CAUSE_LIST',
182189
'INTELLECTUAL_PROPERTY_AND_ENTERPRISE_COURT_DAILY_CAUSE_LIST',
@@ -206,6 +213,7 @@ describe('Subscription Configure List', () => {
206213
'SJP_PUBLIC_LIST',
207214
'SJP_DELTA_PUBLIC_LIST',
208215
'TECHNOLOGY_AND_CONSTRUCTION_COURT_KB_DAILY_CAUSE_LIST',
216+
'TECHNOLOGY_AND_CONSTRUCTION_COURT_DAILY_CAUSE_LIST',
209217
];
210218

211219
const checkboxes = htmlRes.getElementsByName('list-selections[]');
@@ -246,8 +254,10 @@ describe('Subscription Configure List', () => {
246254
'Select Admiralty Court (King’s Bench Division) Daily Cause List\nRhestr Achosion Dyddiol Llys y Morlys (Adran Mainc y Brenin)',
247255
'Select Birmingham Administrative Court Daily Cause List\nRhestr Achosion Dyddiol Llys Gweinyddol Birmingham',
248256
'Select Bristol and Cardiff Administrative Court Daily Cause List\nRhestr Achosion Dyddiol Llys Gweinyddol Bryste a Chaerdydd',
257+
'Select Business &amp; Property Daily Cause List\nRhestr Achosion Dyddiol Busnes ac Eiddo',
249258
'Select Business List (Chancery Division) Daily Cause List\nRhestr Achosion Dyddiol y Llys Busnes (Adran Siawnsri)',
250259
'Select Chancery Appeals (Chancery Division) Daily Cause List\nRhestr Achosion Dyddiol Apeliadau Siawnsri (Adran Siawnsri)',
260+
'Select Circuit Commercial Court Daily Cause List\nRhestr Achosion Dyddiol Llys Masnachol Cylchdaith',
251261
'Select Civil and Family Daily Cause List\nRhestr Achosion Dyddiol y Llys Sifil a Theulu',
252262
'Select Civil Courts at the RCJ Daily Cause List\nRhestr Achosion Dyddiol Llys Sifil yn y Llysoedd Barn Brenhinol',
253263
'Select Civil Daily Cause List\nRhestr Achosion Dyddiol y Llys Sifil',
@@ -258,6 +268,7 @@ describe('Subscription Configure List', () => {
258268
'Select Court of Appeal (Criminal Division) Daily Cause List\nRhestr Achosion Dyddiol y Llys Apêl (Adran Troseddol)',
259269
'Select Family Division of the High Court Daily Cause List\nRhestr Achosion Dyddiol Adran Deulu yr Uchel Lys',
260270
'Select Financial List (Chancery Division/King’s Bench Division/Commercial Court) Daily Cause List\nRhestr Achosion Dyddiol Ariannol (Adran Siawnsri /Adran Mainc y Brenin/Llys Masnach)',
271+
'Select High Court Civil Daily Cause List\nRhestr Achosion Dyddiol Sifil yr Uchel Lys',
261272
'Select Insolvency &amp; Companies Court (Chancery Division) Daily Cause List\nRhestr Achosion Dyddiol Llys Cwmnïau ac achosion Ansolfedd (Adran Siawnsri)',
262273
'Select Intellectual Property (Chancery Division) Daily Cause List\nRhestr Achosion Dyddiol Eiddo Deallusol (Adran Siawnsri)',
263274
'Select Intellectual Property and Enterprise Court Daily Cause List\nRhestr Achosion Dyddiol Llys Mentrau Eiddo Deallusol',
@@ -287,6 +298,7 @@ describe('Subscription Configure List', () => {
287298
'Select Single Justice Procedure Public List (Full List)\nRhestr Gyhoeddus Y Weithdrefn Un Ynad (Rhestr Lawn)',
288299
'Select Single Justice Procedure Public List (New Cases)\nRhestr Gyhoeddus Y Weithdrefn Un Ynad (Achosion Newydd)',
289300
'Select Technology and Construction Court (King’s Bench Division) Daily Cause List\nRhestr Achosion Dyddiol Llys Technoleg ac Adeiladu (Adran Mainc y Brenin)',
301+
'Select Technology and Construction Court Daily Cause List\nRhestr Achosion Dyddiol Llys Technoleg ac Adeiladwaith',
290302
];
291303

292304
const tableRows = htmlRes
@@ -312,8 +324,10 @@ describe('Subscription Configure List', () => {
312324
'ADMIRALTY_COURT_KB_DAILY_CAUSE_LIST',
313325
'BIRMINGHAM_ADMINISTRATIVE_COURT_DAILY_CAUSE_LIST',
314326
'BRISTOL_AND_CARDIFF_ADMINISTRATIVE_COURT_DAILY_CAUSE_LIST',
327+
'BUSINESS_AND_PROPERTY_DAILY_CAUSE_LIST',
315328
'BUSINESS_LIST_CHD_DAILY_CAUSE_LIST',
316329
'CHANCERY_APPEALS_CHD_DAILY_CAUSE_LIST',
330+
'CIRCUIT_COMMERCIAL_COURT_DAILY_CAUSE_LIST',
317331
'CIVIL_AND_FAMILY_DAILY_CAUSE_LIST',
318332
'CIVIL_COURTS_RCJ_DAILY_CAUSE_LIST',
319333
'CIVIL_DAILY_CAUSE_LIST',
@@ -324,6 +338,7 @@ describe('Subscription Configure List', () => {
324338
'COURT_OF_APPEAL_CRIMINAL_DAILY_CAUSE_LIST',
325339
'FAMILY_DIVISION_HIGH_COURT_DAILY_CAUSE_LIST',
326340
'FINANCIAL_LIST_CHD_KB_DAILY_CAUSE_LIST',
341+
'HIGH_COURT_CIVIL_DAILY_CAUSE_LIST',
327342
'INSOLVENCY_AND_COMPANIES_COURT_CHD_DAILY_CAUSE_LIST',
328343
'INTELLECTUAL_PROPERTY_LIST_CHD_DAILY_CAUSE_LIST',
329344
'INTELLECTUAL_PROPERTY_AND_ENTERPRISE_COURT_DAILY_CAUSE_LIST',
@@ -353,6 +368,7 @@ describe('Subscription Configure List', () => {
353368
'SJP_PUBLIC_LIST',
354369
'SJP_DELTA_PUBLIC_LIST',
355370
'TECHNOLOGY_AND_CONSTRUCTION_COURT_KB_DAILY_CAUSE_LIST',
371+
'TECHNOLOGY_AND_CONSTRUCTION_COURT_DAILY_CAUSE_LIST',
356372
];
357373

358374
const checkboxes = htmlRes.getElementsByName('list-selections[]');

0 commit comments

Comments
 (0)