Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIV-16297 Hearing date for order after hearing #5263

Merged
merged 15 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,30 @@
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "orderAfterHearingDate",
"AccessControl": [
{
"UserRoles": [
"judge-profile"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "showOrderAfterHearingDatePage",
"AccessControl": [
{
"UserRoles": [
"judge-profile"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "confirmListingTickBox",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[
{
"ID": "OrderAfterHearingDate",
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
"CaseFieldID": "orderAfterHearingDate",
"ListElementCode": "dateType",
"FieldDisplayOrder": 1,
"DisplayContext": "MANDATORY",
"EventElementLabel": "Enter date(s) of hearing"
},
{
"ID": "OrderAfterHearingDate",
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
"CaseFieldID": "orderAfterHearingDate",
"ListElementCode": "date",
"FieldDisplayOrder": 2,
"DisplayContext": "MANDATORY"
},
{
"ID": "OrderAfterHearingDate",
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
"CaseFieldID": "orderAfterHearingDate",
"ListElementCode": "fromDate",
"FieldDisplayOrder": 3,
"DisplayContext": "MANDATORY"
},
{
"ID": "OrderAfterHearingDate",
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
"CaseFieldID": "orderAfterHearingDate",
"ListElementCode": "toDate",
"FieldDisplayOrder": 4,
"DisplayContext": "MANDATORY"
},
{
"ID": "OrderAfterHearingDate",
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
"CaseFieldID": "orderAfterHearingDate",
"ListElementCode": "bespokeDates",
"FieldDisplayOrder": 5,
"DisplayContext": "MANDATORY"
}
]
34 changes: 29 additions & 5 deletions ccd-definition/CaseEventToFields/FinalOrders-MINTI-nonprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
"FieldShowCondition": "finalOrderAllocateToTrack=\"DO_NOT_SHOW\"",
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
"CaseFieldID": "showOrderAfterHearingDatePage",
"PageDisplayOrder": 1,
"PageFieldDisplayOrder": 1,
"DisplayContext": "MANDATORY",
"PageID": "TrackAllocation",
"FieldShowCondition": "finalOrderAllocateToTrack=\"DO_NOT_SHOW\"",
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
Expand Down Expand Up @@ -706,12 +717,25 @@
"ShowSummaryChangeOption": "Y",
"PageShowCondition": "finalOrderTrackToggle= \"SMALL_CLAIM\" OR finalOrderTrackToggle= \"FAST_CLAIM\""
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
"CaseFieldID": "orderAfterHearingDate",
"PageLabel": "Order Made",
"PageDisplayOrder": 5,
"PageFieldDisplayOrder": 1,
"DisplayContext": "COMPLEX",
"PageID": "OrderAfterHearingDate",
"ShowSummaryChangeOption": "Y",
"PageShowCondition": "showOrderAfterHearingDatePage=\"Yes\"",
"CallBackURLMidEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/mid/hearing-date-order"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
"CaseFieldID": "downloadTemplateLabel1",
"PageLabel": "Download template",
"PageDisplayOrder": 5,
"PageDisplayOrder": 6,
"PageFieldDisplayOrder": 1,
"DisplayContext": "READONLY",
"PageID": "DownloadTemplate",
Expand All @@ -722,7 +746,7 @@
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
"CaseFieldID": "finalOrderDownloadTemplateDocument",
"PageDisplayOrder": 5,
"PageDisplayOrder": 6,
"PageFieldDisplayOrder": 2,
"DisplayContext": "COMPLEX",
"PageID": "DownloadTemplate",
Expand All @@ -733,7 +757,7 @@
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
"CaseFieldID": "downloadTemplateLabel2",
"PageLabel": "Download template",
"PageDisplayOrder": 5,
"PageDisplayOrder": 6,
"PageFieldDisplayOrder": 3,
"DisplayContext": "READONLY",
"PageID": "DownloadTemplate",
Expand All @@ -744,7 +768,7 @@
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
"CaseFieldID": "uploadOrderDocumentFromTemplateLabel",
"PageLabel": "Upload order",
"PageDisplayOrder": 6,
"PageDisplayOrder": 7,
"PageFieldDisplayOrder": 1,
"DisplayContext": "READONLY",
"PageID": "UploadOrder",
Expand All @@ -755,7 +779,7 @@
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "GENERATE_DIRECTIONS_ORDER",
"CaseFieldID": "uploadOrderDocumentFromTemplate",
"PageDisplayOrder": 6,
"PageDisplayOrder": 7,
"PageFieldDisplayOrder": 2,
"DisplayContext": "MANDATORY",
"PageID": "UploadOrder",
Expand Down
16 changes: 16 additions & 0 deletions ccd-definition/CaseField/CaseField-MINTI-nonprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,21 @@
"FieldType": "TaskManagementLocationTab",
"SecurityClassification": "Public",
"Searchable": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "orderAfterHearingDate",
"Label": " ",
"FieldType": "OrderAfterHearingDate",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "showOrderAfterHearingDatePage",
"Label": " ",
"FieldType": "YesOrNo",
"SecurityClassification": "Public",
"Searchable": "N"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[
{
"ID": "OrderAfterHearingDate",
"ListElementCode": "dateType",
"FieldType": "FixedRadioList",
"FieldTypeParameter": "OrderAfterHearingDateType",
"ElementLabel": "Enter date(s) of hearing",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"ID": "OrderAfterHearingDate",
"ListElementCode": "date",
"FieldType": "Date",
"ElementLabel": "Date",
"SecurityClassification": "Public",
"HintText": "For example 16 4 2021",
"FieldShowCondition": "dateType = \"SINGLE_DATE\"",
"Searchable": "N"
},
{
"ID": "OrderAfterHearingDate",
"ListElementCode": "fromDate",
"FieldType": "Date",
"ElementLabel": "Date from",
"SecurityClassification": "Public",
"HintText": "For example 16 4 2021",
"FieldShowCondition": "dateType = \"DATE_RANGE\"",
"Searchable": "N"
},
{
"ID": "OrderAfterHearingDate",
"ListElementCode": "toDate",
"FieldType": "Date",
"ElementLabel": "Date to",
"SecurityClassification": "Public",
"FieldShowCondition": "dateType = \"DATE_RANGE\"",
"HintText": "For example 16 4 2021",
"Searchable": "N"
},
{
"ID": "OrderAfterHearingDate",
"ListElementCode": "bespokeDates",
"FieldType": "TextArea",
"ElementLabel": "Enter a bespoke range of dates for hearing",
"HintText": "For example, 16 4 2021, 19-20 4 2021 and 11-12 5 2021",
"SecurityClassification": "Public",
"FieldShowCondition": "dateType = \"BESPOKE_RANGE\"",
"Searchable": "N"
}
]


Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"ID": "OrderAfterHearingDateType",
"ListElementCode": "SINGLE_DATE",
"ListElement": "Single date",
"DisplayOrder": 1
},
{
"ID": "OrderAfterHearingDateType",
"ListElementCode": "DATE_RANGE",
"ListElement": "Date range",
"DisplayOrder": 2
},
{
"ID": "OrderAfterHearingDateType",
"ListElementCode": "BESPOKE_RANGE",
"ListElement": "Bespoke range",
"DisplayOrder": 3
}
]
6 changes: 4 additions & 2 deletions e2e/fixtures/events/finalOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ const createIntermediateDownloadOrder = () => {
TrackAllocation: {
finalOrderTrackToggle: 'INTERMEDIATE_CLAIM',
finalOrderAllocateToTrack: 'Yes',
finalOrderTrackAllocation: 'INTERMEDIATE_CLAIM'
finalOrderTrackAllocation: 'INTERMEDIATE_CLAIM',
showOrderAfterHearingDatePage: 'No'
},
IntermediateTrackComplexityBand: {
finalOrderIntermediateTrackComplexityBand: {
Expand Down Expand Up @@ -133,7 +134,8 @@ const createMultiDownloadOrder = () => {
TrackAllocation: {
finalOrderTrackToggle: 'MULTI_CLAIM',
finalOrderAllocateToTrack: 'Yes',
finalOrderTrackAllocation: 'MULTI_CLAIM'
finalOrderTrackAllocation: 'MULTI_CLAIM',
showOrderAfterHearingDatePage: 'No'
},
SelectTemplate: {
finalOrderDownloadTemplateOptions: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const judgeUser = config.judgeUserWithRegionId1;
const hearingCenterAdminToBeUsed = config.hearingCenterAdminWithRegionId1;
let civilCaseReference;

Feature('Intermediate and Multi tracks - Download order template Journey - Upload Bundle @non-prod-e2e-ft');
Feature('Intermediate and Multi tracks - Download order template Journey - Upload Bundle');

Scenario('1v2 Same Solicitor Int Track - Download order template - Upload Bundle', async ({api, I}) => {
const mpScenario = 'ONE_V_TWO_ONE_LEGAL_REP';
Expand Down