Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into DTSCCI-1509
Browse files Browse the repository at this point in the history
  • Loading branch information
devind-ra committed Feb 12, 2025
2 parents c004d22 + 367c93b commit 95ccb00
Show file tree
Hide file tree
Showing 426 changed files with 6,300 additions and 3,779 deletions.
4 changes: 3 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ GLOB_PATTERNS=(
'playwright-e2e/requests/*.ts'
'playwright-e2e/requests/**/*.ts',
'playwright-e2e/data-builders/*.ts'
'playwright-e2e/data-builders/**/*.ts'
'playwright-e2e/data-builders/**/*.ts'
'playwright-e2e/actions/*.ts'
'playwright-e2e/actions/**/*.ts'
)

# Get the list of changed files
Expand Down
14 changes: 14 additions & 0 deletions bin/reimport-definitions-devuser-preview.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
camundaBranch=${1:-master}
dmnBranch=${2:-master}
waStandaloneBranch=${3:-master}

echo "Loading Environment Variables"
source ./bin/variables/load-dev-user-preview-environment-variables.sh
echo "Importing CCD definitions"
./bin/build-release-ccd-definition.sh preview
ccdDefinitionFilePath="$(pwd)/build/ccd-release-config/civil-ccd-preview.xlsx"
./bin/utils/ccd-import-definition.sh ${ccdDefinitionFilePath}
rm -rf $(pwd)/build/ccd-release-config

echo "ENV variables set for devuser-preview environment."
echo "XUI_URL: $XUI_WEBAPP_URL"
Original file line number Diff line number Diff line change
Expand Up @@ -505,44 +505,6 @@
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "POST_DJ_NON_DIVERGENT_LETTER_DEFENDANT1",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-systemupdate"
],
"CRUD": "CRU"
},
{
"UserRoles": [
"caseworker-civil-admin",
"caseworker-civil-staff"
],
"CRUD": "R"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "POST_DJ_NON_DIVERGENT_LETTER_DEFENDANT2",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-systemupdate"
],
"CRUD": "CRU"
},
{
"UserRoles": [
"caseworker-civil-admin",
"caseworker-civil-staff"
],
"CRUD": "R"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "JUDGMENT_BY_ADMISSION_DEFENDANT1_PIN_IN_LETTER",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "hearingDurationInMinutesAHN",
"AccessControl": [
{
"UserRoles": [
"CITIZEN-CLAIMANT-PROFILE",
"CITIZEN-DEFENDANT-PROFILE",
"citizen-profile",
"caseworker-civil-systemupdate"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "claimantTrialReadyDocumentCreated",
"AccessControl": [
{
"UserRoles": [
"CITIZEN-CLAIMANT-PROFILE",
"CITIZEN-DEFENDANT-PROFILE",
"citizen-profile",
"caseworker-civil-systemupdate"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "defendantTrialReadyDocumentCreated",
"AccessControl": [
{
"UserRoles": [
"CITIZEN-CLAIMANT-PROFILE",
"CITIZEN-DEFENDANT-PROFILE",
"citizen-profile",
"caseworker-civil-systemupdate"
],
"CRUD": "CRU"
}
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -2353,6 +2353,8 @@
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"caseworker-civil-solicitor",
"citizen-profile",
"CITIZEN-DEFENDANT-PROFILE",
"CITIZEN-CLAIMANT-PROFILE"
Expand Down
16 changes: 16 additions & 0 deletions ccd-definition/AuthorisationCaseField/AuthorisationCaseField.json
Original file line number Diff line number Diff line change
Expand Up @@ -4663,6 +4663,22 @@
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "unfinishedBackEndProcess",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"caseworker-civil-solicitor",
"citizen-profile",
"CITIZEN-DEFENDANT-PROFILE",
"CITIZEN-CLAIMANT-PROFILE"
],
"CRUD": "RU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "respondent2ResponseDeadline",
Expand Down
6 changes: 6 additions & 0 deletions ccd-definition/AuthorisationCaseField/systemUpdate.json
Original file line number Diff line number Diff line change
Expand Up @@ -646,5 +646,11 @@
"CaseFieldID": "respondent2OrgIndividuals",
"UserRole": "caseworker-civil-systemupdate",
"CRUD": "R"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "unfinishedBackEndProcess",
"UserRole": "caseworker-civil-systemupdate",
"CRUD": "R"
}
]
26 changes: 0 additions & 26 deletions ccd-definition/CaseEvent/Camunda/DocmosisEvents-JO-nonprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,32 +64,6 @@
"ShowEventNotes": "N",
"RetriesTimeoutURLAboutToSubmitEvent": 0
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "POST_DJ_NON_DIVERGENT_LETTER_DEFENDANT1",
"Name": "Post DJ letter defendant1",
"Description": "Post DJ letter defendant 1 Legal Org",
"PreConditionState(s)": "*",
"PostConditionState": "*",
"SecurityClassification": "Public",
"CallBackURLAboutToSubmitEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-submit",
"ShowSummary": "N",
"ShowEventNotes": "N",
"RetriesTimeoutURLAboutToSubmitEvent": 0
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "POST_DJ_NON_DIVERGENT_LETTER_DEFENDANT2",
"Name": "Post DJ letter defendant2",
"Description": "Post DJ letter defendant 2 Legal Org",
"PreConditionState(s)": "*",
"PostConditionState": "*",
"SecurityClassification": "Public",
"CallBackURLAboutToSubmitEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-submit",
"ShowSummary": "N",
"ShowEventNotes": "N",
"RetriesTimeoutURLAboutToSubmitEvent": 0
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "JUDGMENT_BY_ADMISSION_DEFENDANT1_PIN_IN_LETTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,25 @@
"PageDisplayOrder": 99,
"PageShowCondition": "relistHearingNotice=\"DONOTSHOW\"",
"Publish": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "COURT_OFFICER_ORDER",
"CaseFieldID": "allocatedTrack",
"PageFieldDisplayOrder": 1,
"DisplayContext": "READONLY",
"PageID": "WorkAllocationIntegrationFields",
"PageDisplayOrder": 99,
"Publish": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "COURT_OFFICER_ORDER",
"CaseFieldID": "responseClaimTrack",
"PageFieldDisplayOrder": 1,
"DisplayContext": "READONLY",
"PageID": "WorkAllocationIntegrationFields",
"PageDisplayOrder": 99,
"Publish": "Y"
}
]
26 changes: 26 additions & 0 deletions ccd-definition/CaseField/CaseField-AHN-CUI-nonprod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "hearingDurationInMinutesAHN",
"Label": "Duration AHN",
"FieldType": "Text",
"SecurityClassification": "Public",
"Searchable": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "claimantTrialReadyDocumentCreated",
"Label": "trial doc date",
"FieldType": "DateTime",
"SecurityClassification": "Public",
"Searchable": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "defendantTrialReadyDocumentCreated",
"Label": "trial doc date",
"FieldType": "DateTime",
"SecurityClassification": "Public",
"Searchable": "Y"
}
]
9 changes: 9 additions & 0 deletions ccd-definition/CaseField/CaseField.json
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,15 @@
"Searchable": "N",
"Comment": "Field needs to be displayed twice for each respondent, ccd does not allow the same field twice in an event"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "unfinishedBackEndProcess",
"Label": "The case processing has not completed, please refresh this page in one minute. If the problem persists please contact the helpdesk 0300 123 7050",
"FieldType": "Label",
"SecurityClassification": "Public",
"Searchable": "N",
"Comment": "Case is stuck in Camunda or the backend services are taking long to respond."
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "applicant2PartyNameLabel",
Expand Down
22 changes: 20 additions & 2 deletions ccd-definition/CaseTypeTab/ServiceRequestHearingNotice-R2-CUI.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,26 @@
"TabID": "ServiceRequest",
"TabLabel": "Service Request",
"TabDisplayOrder": 6,
"CaseFieldID": "casePaymentWaysToPay",
"CaseFieldID": "businessProcess",
"TabFieldDisplayOrder": 1,
"TabShowCondition": "hwfFeeType!=\"CLAIMISSUED\""
"FieldShowCondition": "casePaymentWaysToPay=\"DO_NOT_SHOW_IN_UI\""
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"TabID": "ServiceRequest",
"TabLabel": "Service Request",
"TabDisplayOrder": 6,
"CaseFieldID": "casePaymentWaysToPay",
"TabFieldDisplayOrder": 2,
"FieldShowCondition": "hwfFeeType!=\"CLAIMISSUED\" AND businessProcess.status=\"FINISHED\""
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"TabID": "ServiceRequest",
"TabLabel": "Service Request",
"TabDisplayOrder": 6,
"CaseFieldID": "unfinishedBackEndProcess",
"TabFieldDisplayOrder": 3,
"FieldShowCondition": "businessProcess.status!=\"FINISHED\""
}
]
14 changes: 4 additions & 10 deletions ccd-definition/FixedLists/DocumentType-JO-nonprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,28 @@
"ListElement": "Default Judgment defendant",
"DisplayOrder": 18
},
{
"ID": "DocumentType",
"ListElementCode": "DEFAULT_JUDGMENT_COVER_LETTER",
"ListElement": "Default Judgment Cover Letter",
"DisplayOrder": 19
},
{
"ID": "DocumentType",
"ListElementCode": "JUDGMENT_BY_ADMISSION_CLAIMANT",
"ListElement": "Judgment by admission claimant",
"DisplayOrder": 20
"DisplayOrder": 19
},
{
"ID": "DocumentType",
"ListElementCode": "JUDGMENT_BY_ADMISSION_DEFENDANT",
"ListElement": "Judgment by admission defendant",
"DisplayOrder": 21
"DisplayOrder": 20
},
{
"ID": "DocumentType",
"ListElementCode": "JUDGMENT_BY_DETERMINATION_CLAIMANT",
"ListElement": "Judgment by determination claimant",
"DisplayOrder": 22
"DisplayOrder": 21
},
{
"ID": "DocumentType",
"ListElementCode": "JUDGMENT_BY_DETERMINATION_DEFENDANT",
"ListElement": "Judgment by determination defendant",
"DisplayOrder": 23
"DisplayOrder": 22
}
]
2 changes: 1 addition & 1 deletion e2e/api/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ const clearHearingLocationData = (responseBody) => {
};

const clearDataForDefendantResponse = (responseBody, solicitor) => {
delete responseBody.data['businessProcess'];

delete responseBody.data['caseNotes'];
delete responseBody.data['systemGeneratedCaseDocuments'];
delete responseBody.data['respondentSolicitor2Reference'];
Expand Down
3 changes: 2 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ export default [
'playwright-e2e/pages/**/*fragment.ts',
'playwright-e2e/steps/**/*steps.ts',
'playwright-e2e/data-builders/**/*data-builder.ts',
'playwright-e2e/data-builders/**/*actions.ts',
'playwright-e2e/base/base-page.ts',
'playwright-e2e/base/base-requests.ts',
'playwright-e2e/base/base-api-steps.ts',
'playwright-e2e/base/base-api.ts',
'playwright-e2e/base/base-exui-steps.ts',
],
rules: {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import BasePageActionsFactory from '../../../../base/base-page-actions-factory';

export default class CaseworkerActionsFactory extends BasePageActionsFactory {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import BaseTestData from '../../../../base/base-test-data';
import { AllMethodsStep } from '../../../../decorators/test-steps';
import TestData from '../../../../models/test-data';
import CreateCaseFlagsPageFactory from '../../../../pages/exui/caseworker/create-case-flags/create-case-flags-page-factory';

@AllMethodsStep()
export default class CreateCaseFlagsActions extends BaseTestData {
private createCaseFlagsPageFactory: CreateCaseFlagsPageFactory;

constructor(createCaseFlagsPageFactory: CreateCaseFlagsPageFactory, testData: TestData) {
super(testData);
this.createCaseFlagsPageFactory = createCaseFlagsPageFactory;
}
}
Loading

0 comments on commit 95ccb00

Please sign in to comment.