diff --git a/ccd-definition/AuthorisationCaseField/CareSupervision/system-update.json b/ccd-definition/AuthorisationCaseField/CareSupervision/system-update.json index 2e5582b08dc..88a64c6bb15 100644 --- a/ccd-definition/AuthorisationCaseField/CareSupervision/system-update.json +++ b/ccd-definition/AuthorisationCaseField/CareSupervision/system-update.json @@ -354,14 +354,14 @@ "CaseTypeID": "CARE_SUPERVISION_EPO", "CaseFieldID": "isLocalAuthority", "UserRole": "caseworker-publiclaw-systemupdate", - "CRUD": "R" + "CRUD": "CRUD" }, { "LiveFrom": "01/01/2017", "CaseTypeID": "CARE_SUPERVISION_EPO", "CaseFieldID": "relatingLA", "UserRole": "caseworker-publiclaw-systemupdate", - "CRUD": "R" + "CRUD": "CRUD" }, { "LiveFrom": "01/01/2017", @@ -704,7 +704,7 @@ "CaseTypeID": "CARE_SUPERVISION_EPO", "CaseFieldID": "confidentialRespondents", "UserRole": "caseworker-publiclaw-systemupdate", - "CRUD": "R" + "CRUD": "CRU" }, { "LiveFrom": "01/01/2017", @@ -4509,7 +4509,4 @@ "UserRole": "caseworker-publiclaw-systemupdate", "CRUD": "CRU" } - - - ] diff --git a/playwright-e2e/caseData/LAC110AApplication.json b/playwright-e2e/caseData/LAC110AApplication.json new file mode 100644 index 00000000000..f55e208ef5c --- /dev/null +++ b/playwright-e2e/caseData/LAC110AApplication.json @@ -0,0 +1,469 @@ + +{ + "state": "SUBMITTED", + "caseData": { + + "court": { + "code": "117", + "name": "Family Court sitting at Barnet", + "email": null, + "region": "London", + "epimmsId": "229786", + "regionId": "1", + "dateTransferred": null + }, + "orders": { + "court": "117", + "address": { + "County": null, + "Country": null, + "PostCode": null, + "PostTown": null, + "AddressLine1": null, + "AddressLine2": null, + "AddressLine3": null + }, + "epoType": null, + "excluded": null, + "orderType": [ + "CARE_ORDER" + ], + "directions": "No", + "otherOrder": null, + "directionDetails": null, + "particularsOfChildren": [], + "emergencyProtectionOrders": [], + "particularsOfChildrenDetails": null, + "emergencyProtectionOrderDetails": null, + "emergencyProtectionOrderDirections": [], + "childAssessmentOrderContactDirections": null, + "childRecoveryOrderDirectionsAppliedFor": null, + "childAssessmentOrderAssessmentDirections": null, + "emergencyProtectionOrderDirectionDetails": null, + "educationSupervisionOrderDirectionsAppliedFor": null, + "educationSupervisionOrderPriorConsultationType": [], + "educationSupervisionOrderPriorConsultationOtherLA": null + }, + "dfjArea": "WEST_LONDON", + "grounds": { + "thresholdReason": [ + "beyondControl" + ], + "thresholdDetails": "Test", + "hasThresholdDocument": "NO" + }, + "appSolicitorPolicy": { + "Organisation": { + }, + "OrgPolicyCaseAssignedRole": "[APPSOLICITOR]" + }, + "hearing": { + "type": null, + "reason": null, + "timeFrame": null, + "reason2Days": null, + "reason7Days": null, + "reason12Days": null, + "reducedNotice": null, + "withoutNotice": null, + "type_GiveReason": null, + "respondentsAware": "Yes", + "hearingUrgencyType": "STANDARD", + "reducedNoticeReason": null, + "withoutNoticeReason": null, + "hearingUrgencyDetails": null, + "respondentsAwareReason": null + }, + "caseName": "Smoke Test 2025-06-27T13:54:37.426Z", + "children1": [ + { + "id": "abedd7d7-5af9-41f9-bf66-2b02a0d0c785", + "value": { + "party": { + "gender": "Girl", + "address": { + "County": "", + "Country": "United Kingdom", + "PostCode": "BN26 6AL", + "PostTown": "Polegate", + "AddressLine1": "Hart Reade", + "AddressLine2": "55 High Street", + "AddressLine3": "" + }, + "partyId": "05742f12-4849-417b-8f79-631e5aab25d3", + "adoption": "No", + "keyDates": "these are the key dates", + "lastName": "Brown", + "firstName": "Susan", + "dateOfBirth": "2019-01-10", + "fathersName": "Charles Brown", + "mothersName": "Claire Brown", + "detailsHidden": "No", + "additionalNeeds": "No", + "livingSituation": "Living with respondents", + "litigationIssues": "NO", + "socialWorkerName": "Robert Taylor", + "addressChangeDate": "2022-02-01", + "careAndContactPlan": "this is the brief summary of care and contact plan", + "fathersResponsibility": "Yes", + "socialWorkerTelephoneNumber": { + "telephoneNumber": "0123456789", + "contactDirection": "Jane Smith" + } + }, + "legalCounsellors": [] + } + } + ], + "sendToCtsc": "Yes", + "amountToPay": "251500", + "carePlanList": [], + "childPolicy0": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORA]" + }, + "childPolicy1": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORB]" + }, + "childPolicy2": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORC]" + }, + "childPolicy3": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORD]" + }, + "childPolicy4": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORE]" + }, + "childPolicy5": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORF]" + }, + "childPolicy6": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORG]" + }, + "childPolicy7": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORH]" + }, + "childPolicy8": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORI]" + }, + "childPolicy9": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORJ]" + }, + "respondents1": [ + { + "id": "f5321201-ca1d-4f84-8079-5a5c4ab71ba5", + "value": { + "party": { + "gender": "Male", + "address": {}, + "partyId": "93a07879-adad-4562-9991-9198b9b368c9", + "lastName": "Jones", + "firstName": "Tom", + "addressKnow": "No", + "dateOfBirth": "1980-03-31", + "hideAddress": "No", + "hideTelephone": "No", + "litigationIssues": "YES", + "relationshipToChild": "uncle", + "addressNotKnowReason": "Whereabouts unknown", + "litigationIssuesDetails": "test" + }, + "representedBy": [], + "isLocalAuthority": "NO", + "legalCounsellors": [], + "legalRepresentation": "No" + } + }, + { + "id": "4e294ff1-3169-40f6-8350-11662767af24", + "value": { + "party": { + "gender": "Male", + "address": {}, + "lastName": "Jordan", + "firstName": "Thierry", + "addressKnow": "No", + "dateOfBirth": "1980-03-31", + "hideAddress": "No", + "hideTelephone": "No", + "litigationIssues": "NO", + "relationshipToChild": "uncle", + "addressNotKnowReason": "No fixed abode" + }, + "solicitor": { + "email": "email@eamil.com", + "lastName": "samy", + "firstName": "respondent", + "organisation": { + "OrganisationID": "D25VR7V", + "OrganisationName": "Private solicitors" + }, + "telephoneNumber": { + "telephoneNumber": "956809760" + }, + "regionalOfficeAddress": {}, + "colleaguesToBeNotified": [], + "unregisteredOrganisation": {} + }, + "representedBy": [], + "isLocalAuthority": "NO", + "legalCounsellors": [], + "legalRepresentation": "Yes" + } + } + ], + "c1Application": "No", + "childPolicy10": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORK]" + }, + "childPolicy11": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORL]" + }, + "childPolicy12": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORM]" + }, + "childPolicy13": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORN]" + }, + "childPolicy14": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORO]" + }, + "dateSubmitted":"TO BE FILLED WITH VALID DATA", + "submittedForm": { + "document_url": "${TEST_DOCUMENT_URL}", + "upload_timestamp": "2025-06-27T14:43:08.625802680", + "document_filename": "Smoke_Test_2025-06-27T135437.426Z.pdf", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}" + }, + "thresholdList": [], + "carePlanListLA": [], + "deadline26week": "2025-12-26", + "otherOrderType": "NO", + "hasRespondentLA": "NO", + "thresholdListLA": [], + "localAuthorities": [ + { + "id": "8cd9eee0-333e-493f-a94b-a1d6422b0931", + "value": { + "id": "W9V61CP", + "name": "Swansea City Council", + "email": "FamilyPublicLaw+sa@gmail.com", + "phone": null, + "address": { + "County": "United Kingdom", + "Country": "United Kingdom", + "PostCode": "CR0 2GE", + "PostTown": "Swansea", + "AddressLine1": "Flat 1, Swansea Apartments", + "AddressLine2": "Swansea Central Square 11", + "AddressLine3": "40 Fleet street" + }, + "pbaNumber": "PBA0082848", + "clientCode": null, + "colleagues": [ + { + "id": "5d88647e-ea4f-4ea7-80b4-17ef686ce8ea", + "value": { + "email": "Me2@mail.com", + "phone": "0123456789", + "lastName": "John", + "firstName": "Peters", + "mainContact": "Yes", + "alternativePhone": "123456780", + "notificationRecipient": "Yes" + } + }, + { + "id": "df53e079-76cb-43b0-aa93-a54d190fad10", + "value": { + "role": "OTHER", + "email": "zee@mail.com", + "title": "QA", + "lastName": "Two", + "firstName": "Me", + "mainContact": "No", + "notificationRecipient": "Yes" + } + } + ], + "designated": "Yes", + "legalTeamManager": "Tom Jones", + "customerReference": "1234567", + "representingDetails": { + "lastName": null, + "firstName": null + } + } + } + ], + "respondentPolicy0": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORA]" + }, + "respondentPolicy1": { + "Organisation": { + "OrganisationID": "D25VR7V", + "OrganisationName": "Private solicitors" + }, + "OrgPolicyCaseAssignedRole": "[SOLICITORB]" + }, + "respondentPolicy2": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORC]" + }, + "respondentPolicy3": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORD]" + }, + "respondentPolicy4": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORE]" + }, + "respondentPolicy5": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORF]" + }, + "respondentPolicy6": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORG]" + }, + "respondentPolicy7": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORH]" + }, + "respondentPolicy8": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORI]" + }, + "respondentPolicy9": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORJ]" + }, + "submissionConsent": [ + "agree" + ], + "allocationProposal": { + "proposal": null, + "proposalV2": "Circuit judge", + "proposalReason": "Test" + }, + "caseLocalAuthority": "SA", + "displayAmountToPay": "Yes", + "nextHearingDetails": {}, + "representativeType": "LOCAL_AUTHORITY", + "westLondonDFJCourt": "117", + "caseSummaryCourtName": "Family Court sitting at Barnet", + "dateAndTimeSubmitted": "2025-06-27T15:43:07.664746127+01:00", + "localAuthorityPolicy": { + "Organisation": { + "OrganisationID": "W9V61CP", + "OrganisationName": "Swansea City Council" + }, + "OrgPolicyCaseAssignedRole": "[LASOLICITOR]" + }, + "respondentsConfirmPR": [ + "confirm" + ], + "caseNameHmctsInternal": "Smoke Test 2025-06-27T13:54:37.426Z", + "lastGenuineUpdateTime": "2025-06-27T15:43:08.565762355", + "caseLocalAuthorityName": "Swansea City Council", + "caseManagementCategory": { + "value": { + "code": "FPL", + "label": "Family Public Law" + }, + "list_items": [ + { + "code": "FPL", + "label": "Family Public Law" + } + ] + }, + "caseManagementLocation": { + "region": "1", + "baseLocation": "229786" + }, + "caseSummaryDateOfIssue": "2025-06-27", + "caseSummaryLATabHidden": "Yes", + "noticeOfChangeAnswers0": { + "respondentLastName": "Jones", + "respondentFirstName": "Tom" + }, + "noticeOfChangeAnswers1": { + "respondentLastName": "Jordan", + "respondentFirstName": "Thierry" + }, + "caseSummaryCaseFlagNotes": null, + "caseSummaryHighCourtCase": "No", + "caseSummaryHasNextHearing": null, + "caseSummaryNextHearingCMO": null, + "documentsFiledOnIssueList": [ + { + "id": "f2728d39-58f7-426e-8326-88ff60bebcf8", + "value": { + "document": { + "document_url": "${TEST_DOCUMENT_URL}", + "upload_timestamp": "2025-06-27T13:55:17.767907003", + "document_filename": "testPdf.pdf", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}" + }, + "uploaderType": "DESIGNATED_LOCAL_AUTHORITY", + "uploaderCaseRoles": [ + "LASOLICITOR" + ] + } + } + ], + "caseSummaryCafcassGuardian": null, + "caseSummaryHasFinalHearing": null, + "caseSummaryLAHighCourtCase": "No", + "caseSummaryLASolicitorName": "Peters John", + "caseSummaryNextHearingDate": null, + "caseSummaryNextHearingType": null, + "caseSummaryOrdersRequested": "Care order", + "caseSummaryFinalHearingDate": null, + "caseSummaryFlagAddedByEmail": null, + "caseSummaryLASolicitorEmail": "Me2@mail.com", + "caseSummaryNextHearingJudge": null, + "caseSummaryNumberOfChildren": 1, + "documentsFiledOnIssueListLA": [], + "noticeOfChangeChildAnswers0": { + "respondentLastName": "Brown", + "respondentFirstName": "Susan" + }, + "caseSummaryPreviousCourtName": null, + "secureAccommodationOrderType": "NO", + "caseSummaryAllocatedJudgeName": null, + "caseSummaryFlagAssessmentForm": null, + "caseSummaryHasPreviousHearing": null, + "caseSummaryPreviousHearingCMO": null, + "caseSummaryAllocatedJudgeEmail": null, + "caseSummaryFlagAddedByFullName": null, + "caseSummaryLanguageRequirement": "No", + "caseSummaryNextHearingDateTime": null, + "caseSummaryPreviousHearingDate": null, + "caseSummaryPreviousHearingType": null, + "contactWithChildInCareOrderType": null, + "refuseContactWithChildOrderType": null, + "caseSummaryHasUnresolvedMessages": null, + "caseSummaryLALanguageRequirement": "No", + "applicationDocumentsToFollowReason": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.", + "caseSummaryFirstRespondentLastName": "Jones", + "caseSummaryFirstRespondentLegalRep": null, + "caseSummaryNextHearingEmailAddress": null +} +} diff --git a/playwright-e2e/caseData/thirdPartyApplication.json b/playwright-e2e/caseData/thirdPartyApplication.json new file mode 100644 index 00000000000..0d6b7e851c8 --- /dev/null +++ b/playwright-e2e/caseData/thirdPartyApplication.json @@ -0,0 +1,451 @@ +{ + "state": "SUBMITTED", + "caseData": { + "court": { + "code": "117", + "name": "Family Court sitting at Barnet", + "email": null, + "region": "London", + "epimmsId": "229786", + "regionId": "1", + "dateTransferred": null + }, + "orders": { + "court": "117", + "orderType": [ + "OTHER" + ], + "directions": "No", + "otherOrder": "Order to contact the child at foster care", + "directionDetails": null + }, + "dfjArea": "WEST_LONDON", + "hearing": { + "type": null, + "reason": null, + "timeFrame": null, + "reason2Days": null, + "reason7Days": null, + "reason12Days": null, + "reducedNotice": null, + "withoutNotice": null, + "type_GiveReason": null, + "respondentsAware": "Yes", + "hearingUrgencyType": "STANDARD", + "reducedNoticeReason": null, + "withoutNoticeReason": null, + "hearingUrgencyDetails": null, + "respondentsAwareReason": null + }, + "caseName": "Private Solicitor -C110 a Application ", + "children1": [ + { + "id": "c003c03a-caff-4812-a58d-fd42277acaad", + "value": { + "party": { + "gender": "Girl", + "address": { + "County": "", + "Country": "United Kingdom", + "PostCode": "BN26 6AL", + "PostTown": "Polegate", + "AddressLine1": "Hart Reade", + "AddressLine2": "55 High Street", + "AddressLine3": "" + }, + "partyId": "0b1e32bc-41ec-4d7a-84e7-6bc6f2245dff", + "adoption": "No", + "keyDates": "these are the key dates", + "lastName": "Brown", + "firstName": "Susan", + "dateOfBirth": "2019-01-10", + "fathersName": "Charles Brown", + "mothersName": "Claire Brown", + "detailsHidden": "No", + "additionalNeeds": "No", + "livingSituation": "Living with respondents", + "litigationIssues": "NO", + "socialWorkerName": "Robert Taylor", + "addressChangeDate": "2022-02-01", + "careAndContactPlan": "this is the brief summary of care and contact plan", + "fathersResponsibility": "Yes", + "socialWorkerTelephoneNumber": { + "telephoneNumber": "0123456789", + "contactDirection": "Jane Smith" + } + }, + "legalCounsellors": [] + } + } + ], + "relatingLA": "SA", + "sendToCtsc": "Yes", + "amountToPay": "26300", + "childPolicy0": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORA]" + }, + "childPolicy1": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORB]" + }, + "childPolicy2": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORC]" + }, + "childPolicy3": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORD]" + }, + "childPolicy4": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORE]" + }, + "childPolicy5": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORF]" + }, + "childPolicy6": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORG]" + }, + "childPolicy7": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORH]" + }, + "childPolicy8": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORI]" + }, + "childPolicy9": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORJ]" + }, + "childPolicy10": { + "Organisation": { + }, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORK]" + }, + "childPolicy11": { + "Organisation": { + }, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORL]" + }, + "childPolicy12": { + "Organisation": { + }, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORM]" + }, + "childPolicy13": { + "Organisation": { + }, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORN]" + }, + "childPolicy14": { + "Organisation": { + }, + "OrgPolicyCaseAssignedRole": "[CHILDSOLICITORO]" + }, + + "respondents1": [ + { + "id": "00000000-0000-0000-0000-000000000000", + "value": { + "party": { + "address": { + "County": "", + "Country": "United Kingdom", + "PostCode": "SK3 8PP", + "PostTown": "Stockport", + "AddressLine1": "1 Barnfield Road West", + "AddressLine2": "", + "AddressLine3": "" + }, + "firstName": "Swansea City Council", + "addressKnow": "Yes", + "hideAddress": "No", + "hideTelephone": "No", + "relationshipToChild": "Local Authority" + }, + "solicitor": { + "email": "FamilyPublicLaw+sa@gmail.com", + "lastName": "Lee", + "firstName": "Tommy", + "organisation": { + "OrganisationID": "W9V61CP", + "OrganisationName": "Swansea City Council" + }, + "telephoneNumber": { + "telephoneNumber": "07818213678" + }, + "regionalOfficeAddress": {}, + "colleaguesToBeNotified": [], + "unregisteredOrganisation": {} + }, + "representedBy": [], + "usingOtherOrg": "No", + "isLocalAuthority": "YES", + "legalCounsellors": [], + "legalRepresentation": "Yes" + } + }, + { + "id": "fe1b0a8a-4c7d-44c0-a5fe-fcbac4ed6b95", + "value": { + "party": { + "gender": "Male", + "address": {}, + "partyId": "29518961-70d9-46bb-ba99-3019d6d0aba8", + "lastName": "Asa", + "firstName": "Dianah", + "addressKnow": "No", + "dateOfBirth": "1998-10-11", + "hideAddress": "No", + "hideTelephone": "No", + "litigationIssues": "NO", + "relationshipToChild": "uncle", + "addressNotKnowReason": "Whereabouts unknown" + }, + "representedBy": [], + "isLocalAuthority": "NO", + "legalCounsellors": [], + "legalRepresentation": "No" + } + }, + { + "id": "694a6807-0bd7-4247-980e-825885678cbf", + "value": { + "party": { + "gender": "Male", + "address": {}, + "lastName": "Yaks", + "firstName": "Moniks", + "addressKnow": "No", + "dateOfBirth": "1988-03-31", + "hideAddress": "No", + "hideTelephone": "No", + "litigationIssues": "NO", + "relationshipToChild": "uncle", + "addressNotKnowReason": "No fixed abode" + }, + "representedBy": [], + "isLocalAuthority": "NO", + "legalCounsellors": [], + "legalRepresentation": "No" + } + } + ], + "c1Application": "No", + "dateSubmitted": "2025-06-25", + "submittedForm": { + "document_url": "http://dm-store-aat.service.core-compute-aat.internal/documents/eb7c3960-7a6c-4fa7-a166-ed799f4de129", + "upload_timestamp": "2025-06-25T15:00:04.027867320", + "document_filename": "Private_Solicitor_-C110_a_Application_2025-06-25T145849.968Z.pdf", + "document_binary_url": "http://dm-store-aat.service.core-compute-aat.internal/documents/eb7c3960-7a6c-4fa7-a166-ed799f4de129/binary" + }, + "deadline26week": "2025-12-24", + "otherOrderType": "YES", + "hasRespondentLA": "YES", + "ordersSolicitor": { + "court": "117", + "orderType": [ + "OTHER" + ], + "directions": "No", + "otherOrder": "Order to contact the child at foster care", + "directionDetails": null + }, + "isLocalAuthority": "NO", + "localAuthorities": [ + { + "id": "e0a7654d-6f28-44a1-a92d-2de87077ff42", + "value": { + "id": "D25VR7V", + "name": "Private solicitors", + "email": "privatesol@gmail.com", + "phone": null, + "address": { + "PostCode": "CR0 2GE", + "PostTown": "London", + "AddressLine1": "Flat 1", + "AddressLine2": "Private Solicitors Apartments" + }, + "pbaNumber": "PBA1234567", + "clientCode": null, + "colleagues": [ + { + "id": "e4e93dc2-b853-45ac-a522-e938cca85309", + "value": { + "email": "email@email.com", + "phone": "35346878679876", + "lastName": "Nouth", + "firstName": "Maie", + "mainContact": "Yes", + "notificationRecipient": "Yes" + } + }, + { + "id": "fadb4830-bd21-4b69-bb6f-e4c65bbcd17a", + "value": { + "role": "OTHER", + "email": "Johnson@hmcts.com", + "title": "assistant", + "lastName": "Johnson", + "firstName": "Johnson", + "mainContact": "No", + "notificationRecipient": "Yes" + } + } + ], + "designated": "No", + "legalTeamManager": null, + "customerReference": "Customer reference 1000", + "representingDetails": { + "lastName": "Somuy", + "firstName": "John" + } + } + } + ], + "lastCreatedWATask": "FAILED_PAYMENT", + "respondentPolicy0": { + "Organisation": { + "OrganisationID": "W9V61CP", + "OrganisationName": "Swansea City Council" + }, + "OrgPolicyCaseAssignedRole": "[SOLICITORA]" + }, + "respondentPolicy1": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORB]" + }, + "respondentPolicy2": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORC]" + }, + "respondentPolicy3": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORD]" + }, + "respondentPolicy4": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORE]" + }, + "respondentPolicy5": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORF]" + }, + "respondentPolicy6": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORG]" + }, + "respondentPolicy7": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORH]" + }, + "respondentPolicy8": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORI]" + }, + "respondentPolicy9": { + "Organisation": {}, + "OrgPolicyCaseAssignedRole": "[SOLICITORJ]" + }, + "submissionConsent": [ + "agree" + ], + "allocationProposal": { + "proposal": null, + "proposalV2": "Circuit judge", + "proposalReason": "Test" + }, + "caseLocalAuthority": "SA", + "displayAmountToPay": "Yes", + "nextHearingDetails": {}, + "representativeType": "RESPONDENT_SOLICITOR", + "westLondonDFJCourt": "117", + "caseSummaryCourtName": "Family Court sitting at Barnet", + "dateAndTimeSubmitted": "2025-06-25T16:00:03.396921513+01:00", + "respondentsConfirmPR": [ + "confirm" + ], + "caseNameHmctsInternal": "Private Solicitor -C110 a Application 2025-06-25T14:58:49.968Z", + "lastGenuineUpdateTime": "2025-06-25T16:00:03.970141236", + "caseLocalAuthorityName": "Swansea City Council", + "caseManagementCategory": { + "value": { + "code": "FPL", + "label": "Family Public Law" + }, + "list_items": [ + { + "code": "FPL", + "label": "Family Public Law" + } + ] + }, + "caseManagementLocation": { + "region": "1", + "baseLocation": "229786" + }, + "caseSummaryDateOfIssue": "2025-06-25", + "caseSummaryLATabHidden": "Yes", + "noticeOfChangeAnswers0": { + "respondentFirstName": "Swansea City Council" + }, + "noticeOfChangeAnswers1": { + "respondentLastName": "Asa", + "respondentFirstName": "Dianah" + }, + "noticeOfChangeAnswers2": { + "respondentLastName": "Yaks", + "respondentFirstName": "Moniks" + }, + "appSolicitorPolicy": { + "Organisation": { + "OrganisationID": "D25VR7V", + "OrganisationName": "Private solicitors" + }, + "OrgPolicyCaseAssignedRole": "[APPSOLICITOR]" + }, + "caseSummaryHighCourtCase": "No", + "respondentLocalAuthority": { + "name": "Swansea City Council", + "email": "FamilyPublicLaw+sa@gmail.com", + "address": { + "County": "", + "Country": "United Kingdom", + "PostCode": "SK3 8PP", + "PostTown": "Stockport", + "AddressLine1": "1 Barnfield Road West", + "AddressLine2": "", + "AddressLine3": "" + }, + "phoneNumber": "07818213678", + "organisation": { + "OrganisationID": null, + "OrganisationName": null + }, + "usingOtherOrg": "No", + "legalCounsellors": [], + "representativeLastName": "Lee", + "representativeFirstName": "Tommy" + }, + "caseSummaryLAHighCourtCase": "No", + "caseSummaryLASolicitorName": "Maie Nouth", + "caseSummaryOrdersRequested": "Variation or discharge of care or supervision order", + "caseSummaryLASolicitorEmail": "email@email.com", + "caseSummaryNumberOfChildren": 1, + "noticeOfChangeChildAnswers0": { + "respondentLastName": "Brown", + "respondentFirstName": "Susan" + }, + "secureAccommodationOrderType": "NO", + "caseSummaryLanguageRequirement": "No", + "caseSummaryLALanguageRequirement": "No", + "noticeOfChangeAnswersThirdPartyRespondent": { + "respondentLastName": "Somuy", + "respondentFirstName": "John" + } + } +} diff --git a/playwright-e2e/fixtures/create-fixture.ts b/playwright-e2e/fixtures/create-fixture.ts index 2f0c28062bc..23cc6a2b17a 100644 --- a/playwright-e2e/fixtures/create-fixture.ts +++ b/playwright-e2e/fixtures/create-fixture.ts @@ -44,6 +44,7 @@ import { ManageRepresentatives } from "../pages/manage-representatives"; import {ManageTTL} from "../pages/manage-t-t-l"; import { OthersToBeGivenNotice } from "../pages/others-to-be-given-notice"; import { ChangeOtherToRespondent } from "../pages/change-other-to-respondent"; +import {NoticeOfChange} from "../pages/notice-of-change"; import {ManageOrdersChildrenDetails} from "../pages/manage-orders/manage-orders-children-details"; import {ManageOrdersHearingDetails} from "../pages/manage-orders/manage-orders-hearing-details"; import {ManageOrdersManageOrdersOperations} from "../pages/manage-orders/manage-orders-manage-orders-operations"; @@ -100,6 +101,7 @@ type CreateFixtures = { manageTTL: ManageTTL; othersToBeGivenNotice: OthersToBeGivenNotice; changeOtherToRespondent: ChangeOtherToRespondent; + noticeOfChange: NoticeOfChange; manageOrdersChildrenDetails: ManageOrdersChildrenDetails; manageOrderHearingDetails: ManageOrdersHearingDetails; manageOrdersManageOrdersOperations: ManageOrdersManageOrdersOperations; @@ -109,7 +111,6 @@ type CreateFixtures = { manageOrdersReview: ManageOrdersReview; submit: Submit; - }; export const test = base.extend({ @@ -290,6 +291,9 @@ othersToBeGivenNotice: async ({ page }, use) => { changeOtherToRespondent: async ({ page }, use) => { await use(new ChangeOtherToRespondent(page)); }, + noticeOfChange: async ({ page }, use) => { + await use(new NoticeOfChange(page)); + }, manageOrdersChildrenDetails: async ({ page }, use) => { await use(new ManageOrdersChildrenDetails(page)); diff --git a/playwright-e2e/pages/base-page.ts b/playwright-e2e/pages/base-page.ts index 574859f49cc..4b91fe636bb 100644 --- a/playwright-e2e/pages/base-page.ts +++ b/playwright-e2e/pages/base-page.ts @@ -136,4 +136,9 @@ export class BasePage { await page.locator('#hearingStartDate-minute').fill(min); await page.getByRole('textbox', {name: 'Second'}).fill(sec); } + hypenateCaseNumber(caseNumber: string) { + let hypenatedCaseNumber: string; + hypenatedCaseNumber = caseNumber.slice(0, 4) + "-" + caseNumber.slice(4, 8) + "-" + caseNumber.slice(8, 12) + "-" + caseNumber.slice(12, 16); + return hypenatedCaseNumber + } } diff --git a/playwright-e2e/pages/link-cases.ts b/playwright-e2e/pages/link-cases.ts index c7fb6b0729b..3a756766574 100644 --- a/playwright-e2e/pages/link-cases.ts +++ b/playwright-e2e/pages/link-cases.ts @@ -29,11 +29,7 @@ export class CaseLink extends BasePage { } await this.proposeLink.click(); } - hypenateCaseNumber(caseNumber: string) { - let hypenatedCaseNumber: string; - hypenatedCaseNumber = caseNumber.slice(0, 4) + "-" + caseNumber.slice(4, 8) + "-" + caseNumber.slice(8, 12) + "-" + caseNumber.slice(12, 16); - return hypenatedCaseNumber - } + async submitCaseLink() { this.submit.click(); } diff --git a/playwright-e2e/pages/notice-of-change.ts b/playwright-e2e/pages/notice-of-change.ts new file mode 100644 index 00000000000..7685663642d --- /dev/null +++ b/playwright-e2e/pages/notice-of-change.ts @@ -0,0 +1,48 @@ +import {expect, type Locator, type Page} from "@playwright/test"; +import {BasePage} from "./base-page"; + +export class NoticeOfChange extends BasePage { + + + public constructor(page: Page) { + super(page); + + } + + async clickNoticeOfChange() { + await this.page.getByRole('link', {name: 'Notice of change'}).click(); + await expect(this.page.getByRole('heading', {name: 'Notice of change'})).toBeVisible(); + } + + async enterCaseNumber(caseNumber: string) { + await expect.soft(this.page.getByText('This is a 16-digit number from MyHMCTS, for example 1111-2222-3333-4444')).toBeVisible(); + await this.page.getByRole('textbox', {name: 'Online case reference number'}).fill(caseNumber); + + } + + async enterClientDetails(firstName: string, lastName: string) { + await expect(this.page.getByText(' You must enter the client details exactly as they\'re written on the case, including any mistakes. If the client\'s name is Smyth but it has been labelled "Smith", you should enter Smith. Please ensure that you are only performing a notice of change on behalf of the client that you are representing. ')).toBeVisible(); + await this.page.getByRole('textbox', {name: 'Your client\'s first name'}).fill(firstName); + await this.page.getByRole('textbox', {name: 'Your client\'s last name'}).fill(lastName); + } + + async confirmDetails() { + await expect(this.page.getByText('You should tick to \'sign\' when:')).toBeVisible(); + await expect.soft(this.page.getByText('You\'re satisfied that all these details are accurate and match what is written on the case')).toBeVisible(); + await expect(this.page.getByText('You have served notice of this change on every party to the case, including the former legal representative (if there was one)')).toBeVisible(); + + await this.page.getByRole('checkbox', {name: 'I confirm all these details'}).check(); + await this.page.getByRole('checkbox', {name: 'I have served notice of this'}).check(); + await expect(this.page.locator('#notification-section')).toContainText('If the client previously had legal representation, we\'ll let the legal firm or legal representative know that they no longer have access to the case.'); + await expect(this.page.locator('#notification-section')).toContainText('After you submit a notice of change, you might not see the confirmation page immediately'); + } + + async assertNoCConfirmation() { + await expect(this.page.getByRole('heading', {name: 'Notice of change successful'})).toBeVisible(); + await expect(this.page.getByText('Notice of change successful You\'re now representing a client on case')).toBeVisible(); + } + + async accessTheCase() { + await this.page.getByRole('link', {name: 'View this case'}).click(); + } +} diff --git a/playwright-e2e/tests/notice-of-change.spec.ts b/playwright-e2e/tests/notice-of-change.spec.ts new file mode 100644 index 00000000000..a0dbb46fcff --- /dev/null +++ b/playwright-e2e/tests/notice-of-change.spec.ts @@ -0,0 +1,72 @@ +import {test} from '../fixtures/create-fixture'; +import {createRequire} from 'node:module'; + +const require = createRequire(import.meta.url); +import { + newSwanseaLocalAuthorityUserOne, + FPLSolicitorOrgUser, privateSolicitorOrgUser +} from '../settings/user-credentials'; +import {expect} from "@playwright/test"; +import thirdPartyCaseData from '../caseData/thirdPartyApplication.json' assert {type: "json"}; +import LAc110WithRespondent from '../caseData/LAC110AApplication.json' assert {type: "json"}; + +import {createCase, giveAccessToCase, updateCase} from "../utils/api-helper"; + +test.describe.only('Notice Of Change', () => { + const dateTime = new Date().toISOString(); + let caseNumber: string; + let caseName: string; + + + test('Notice of Change - LA c110A application', + async ({page, signInPage, noticeOfChange}) => { + let hypenCase: string; + caseNumber = await createCase('e2e case', newSwanseaLocalAuthorityUserOne); + caseName = 'NoC of LA C110a Application ' + dateTime.slice(0, 10); + await updateCase(caseName, caseNumber, LAc110WithRespondent); + await giveAccessToCase(caseNumber, privateSolicitorOrgUser, '[SOLICITORB]'); + + await signInPage.visit(); + await signInPage.login(FPLSolicitorOrgUser.email, FPLSolicitorOrgUser.password); + + await noticeOfChange.clickNoticeOfChange(); + await noticeOfChange.clickContinue(); + await noticeOfChange.enterCaseNumber(caseNumber); + await noticeOfChange.clickContinue(); + await noticeOfChange.enterClientDetails('Thierry', 'Jordan'); + await noticeOfChange.clickContinue(); + await noticeOfChange.confirmDetails(); + await noticeOfChange.clickSubmit(); + await noticeOfChange.accessTheCase(); + hypenCase = noticeOfChange.hypenateCaseNumber(caseNumber); + + //assert + await expect(page.getByText(hypenCase)).toBeVisible(); + }); + + test('Notice of Change - third party c110A application', + async ({page, signInPage, noticeOfChange}) => { + let hypenCase: string; + caseNumber = await createCase('e2e case', privateSolicitorOrgUser); + caseName = 'Noc Of 3rd Party C110a Application ' + dateTime.slice(0, 10); + await updateCase(caseName, caseNumber, thirdPartyCaseData); + + await signInPage.visit(); + await signInPage.login(FPLSolicitorOrgUser.email, FPLSolicitorOrgUser.password); + + await noticeOfChange.clickNoticeOfChange(); + await noticeOfChange.clickContinue(); + await noticeOfChange.enterCaseNumber(caseNumber); + await noticeOfChange.clickContinue(); + await noticeOfChange.enterClientDetails('John', 'Somuy'); + await noticeOfChange.clickContinue(); + await noticeOfChange.confirmDetails(); + await noticeOfChange.clickSubmit(); + await noticeOfChange.accessTheCase(); + hypenCase = noticeOfChange.hypenateCaseNumber(caseNumber); + + //assert + await expect(page.getByText(hypenCase)).toBeVisible(); + }) + +})