diff --git a/Jenkinsfile_CNP b/Jenkinsfile_CNP index ad352406d00..91752033f1d 100644 --- a/Jenkinsfile_CNP +++ b/Jenkinsfile_CNP @@ -227,6 +227,24 @@ withPipeline(type, product, component) { steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'build/test-results/tests/functionalTest/**/*' } } + stage('cafCassAPITest') { + try { + yarnBuilder.yarn('test:functional-API') + } catch (Error) { + unstable(message: "${STAGE_NAME} is unstable: " + Error.toString()) + } finally { + publishHTML([ + allowMissing : true, + alwaysLinkToLastBuild: true, + keepAll : true, + reportDir : "../test-results/functionalTest", + reportFiles : 'index.html', + reportName : 'cafcass API Test Report' + ]) + steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'build/test-results/tests/functionalTest/**/*' + } + } + } before('smoketest:saat') { env.URL = "https://ccd-case-management-web-saat.service.core-compute-saat.internal" diff --git a/Jenkinsfile_nightly b/Jenkinsfile_nightly index b378655b51a..a7717707caf 100644 --- a/Jenkinsfile_nightly +++ b/Jenkinsfile_nightly @@ -66,7 +66,9 @@ def teardownSecretsForIntegrationTests() { env.INTEGRATION_TEST_DOCMOSIS_TORNADO_OUTPUT_FOLDER = '' } -withNightlyPipeline(type, product, component) { +withNightlyPipeline(type, product, component) + { + { pipelineConf = config; env.URL = params.FRONTEND_URL @@ -78,8 +80,8 @@ withNightlyPipeline(type, product, component) { loadVaultSecrets(integrationTestSecrets) - enableMutationTest() - enableFortifyScan('fpl-aat') + // enableMutationTest() + //enableFortifyScan('fpl-aat') enableFullFunctionalTest(240) before('mutationTest') { @@ -152,8 +154,27 @@ withNightlyPipeline(type, product, component) { steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'build/reports/tests/functionalTest/**/*' } } + stage('cafCassAPITest') { + try { + yarnBuilder.yarn('test:functional-API') + } catch (Error) { + unstable(message: "${STAGE_NAME} is unstable: " + Error.toString()) + } finally { + publishHTML([ + allowMissing: true, + alwaysLinkToLastBuild: true, + keepAll: true, + reportDir: 'playwright-report', + reportFiles: 'index.html', + reportName: 'UITestWebkitReport' + ]) + steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'build/reports/tests/functionalTest/**/*' + } + } } +} + afterAlways('fortify-scan') { steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/Fortify Scan/**/*' } diff --git a/package.json b/package.json index 28705e72cf8..1e3c84abc5a 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,10 @@ "@babel/core": "^7.11.0", "@babel/eslint-parser": "^7.17.0", "@eslint/js": "^9.0.0", - "@playwright/test": "^1.43.1", + "@playwright/test": "^1.46.0", "@types/node": "^20.10.7", "@types/qs": "^6.9.11", + "ajv": "^8.17.1", "axios": "^1.6.7", "codeceptjs": "3.6.7", "dateformat": "^4.6.3", @@ -45,9 +46,10 @@ "test:functional-chromium": "yarn playwright install chromium && yarn playwright install firefox && yarn playwright install webkit && yarn playwright test --project=chromium", "test:functional-webkit": "yarn playwright install chromium && yarn playwright install firefox && yarn playwright install webkit && yarn playwright test --project=webkit", "test:functional-firefox": "yarn playwright install chromium && yarn playwright install firefox && yarn playwright install webkit && yarn playwright test --project=firefox", - "test:functional-nightly-preview": "yarn playwright install chromium && yarn playwright test --project=preview", + "test:functional-API": " yarn playwright test --project=CafcassAPI ", + "test:functional-nightly-preview": "yarn playwright install chromium && yarn playwright test --project=preview --workers=2 ", "test:smoke": "yarn npm audit --recursive --environment production && MOCHAWESOME_REPORTFILENAME=smoke REPORT_DIR=test-results/smokeTest REPORT_FILE=test-results/smokeTest/results.xml codeceptjs run --grep '@smoke-tests' --reporter mocha-multi --verbose", - "test:local": "yarn playwright test --headed --project=preview --retries=1 --grep @local", + "test:local": "yarn playwright install chromium && yarn playwright test --project=CafcassAPI --retries=1 --repeat-each=3 --workers=3 --trace on", "prepare": "husky install", "yarn-update": "yarn set version 3.x", "install-dependencies": "/usr/bin/yarn install --silent", @@ -67,6 +69,7 @@ "dependencies": { "@axe-core/playwright": "^4.8.5", "@types/lodash": "^4.14.202", - "dotenv": "^16.4.1" + "dotenv": "^16.4.5", + "ts-node": "^10.9.2" } } diff --git a/playwright-e2e/caseData/cafcassAPICaseSchema.json b/playwright-e2e/caseData/cafcassAPICaseSchema.json new file mode 100644 index 00000000000..c9978b2b89a --- /dev/null +++ b/playwright-e2e/caseData/cafcassAPICaseSchema.json @@ -0,0 +1,1376 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "http://example.com/example.json", + "type": "object", + "required": [ + "total", + "cases" + ], + "properties": { + "total": { + "type": "integer" + }, + "cases": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "jurisdiction", + "state", + "caseTypeId", + "createdDate", + "lastModified", + "caseData" + ], + "properties": { + "id": { + "type": "number" + }, + "jurisdiction": { + "type": "string" + }, + "state": { + "enum": [ + "Submitted", + "Gatekeeping", + "GATEKEEPING_LISTING", + "PREPARE_FOR_HEARING", + "FINAL_HEARING", + "Closed" + ] + }, + "caseTypeId": { + "type": "string" + }, + "createdDate": { + "type": "string" + }, + "lastModified": { + "type": "string" + }, + "lastStateModifiedDate": { + "type": [ + "string" + ] + }, + "caseData": { + "type": "object", + "required": [ + "familyManCaseNumber", + "dateSubmitted", + "applicationType", + "ordersSought", + "citizenIsApplicant", + "applicants", + "respondents", + "children", + "caseDocuments" + ], + "properties": { + "familyManCaseNumber": { + "type": "string" + }, + "dateSubmitted": { + "type": "string" + }, + "applicationType": { + "enum": [ + "C110A", + "C1" + ] + }, + "ordersSought": { + "type": "array", + "items": { + "enum": [ + "CARE_ORDER", + "INTERIM_CARE_ORDER", + "SUPERVISION_ORDER", + "INTERIM_SUPERVISION_ORDER", + "EDUCATION_SUPERVISION_ORDER", + "EMERGENCY_PROTECTION_ORDER", + "OTHER", + "CHILD_ASSESSMENT_ORDER", + "SECURE_ACCOMMODATION_ORDER", + "REFUSE_CONTACT_WITH_CHILD", + "CONTACT_WITH_CHILD_IN_CARE", + "CHILD_RECOVERY_ORDER" + ] + } + }, + "dateOfCourtIssue": { + "type": [ + "string" + ] + }, + "citizenIsApplicant": { + "type": "boolean" + }, + "applicantLA": { + "enum": [ + null, + "SA", + "CDF", + "SCC", + "PCC", + "STF", + "SN", + "SNW", + "RCC", + "HN", + "NLC", + "NELC", + "LCC", + "KBC", + "ERY", + "RCT", + "MTC", + "NCC", + "OCC", + "FPLA", + "DCC", + "LEI", + "LCO", + "MKC", + "DBC", + "HCC", + "SOT", + "BSC", + "BDB", + "SOC", + "CEB", + "DER", + "LAN", + "LIC", + "TAM", + "MWC", + "WMD", + "NGC", + "NHC", + "DSC", + "WSC", + "HFC", + "OLC", + "STC", + "DMC", + "CCC", + "WCC", + "BCP", + "MDB", + "BIR", + "SOL", + "STO", + "CER", + "COR", + "WOL", + "SMC", + "TWB", + "SHR", + "WAL", + "BCC", + "CMB", + "LBM", + "BOL", + "HBC", + "WIR", + "GTE", + "YCC", + "BHC", + "TBC", + "DEV", + "PEM", + "BNS", + "GCC", + "NSC", + "LBC", + "NYS", + "WIC", + "PET", + "SGL", + "HAM", + "VOG", + "NPT", + "CAR", + "GSCC", + "LBTH", + "BRD", + "SUF", + "WRX", + "NFK", + "NWT", + "SHF", + "ROT", + "DON", + "BAR", + "IOA", + "KECH", + "WMS", + "DEN", + "CWC", + "BRE", + "CPY", + "WAR", + "BGW", + "NHB", + "STH", + "MON", + "DOR", + "BRO", + "KKL", + "LEE", + "BED", + "GWY", + "FCC", + "CON", + "SBC", + "HRW", + "HPL", + "CBF", + "SWK", + "HUL", + "BLA", + "NTY", + "KEN", + "MCC", + "CAM", + "POW", + "SUN", + "IOW", + "BFO", + "WBC", + "SCF", + "WIM", + "WOK", + "TCBC", + "STY", + "KGN", + "RMD", + "SUT", + "WAD", + "GRW", + "TOR", + "PLY", + "BRA", + "CAL", + "RBC", + "SAL", + "ESX", + "HAF", + "REC", + "NTHW", + "NTHN", + "LAM", + "ISL", + "CDN", + "LEW", + "BNT", + "HLW", + "WSX", + "BAD", + "ENF", + "WAF", + "CRY", + "RED", + "HAR", + "EAL", + "BEX", + "BUR", + "THK", + "ESS", + "HAC", + "COL", + "HAV", + "NEW", + "RTL", + "WMF", + "SOS" + ] + }, + "respondentLA": { + "enum": [ + "SA", + "CDF", + "SCC", + "PCC", + "STF", + "SN", + "SNW", + "RCC", + "HN", + "NLC", + "NELC", + "LCC", + "KBC", + "ERY", + "RCT", + "MTC", + "NCC", + "OCC", + "FPLA", + "DCC", + "LEI", + "LCO", + "MKC", + "DBC", + "HCC", + "SOT", + "BSC", + "BDB", + "SOC", + "CEB", + "DER", + "LAN", + "LIC", + "TAM", + "MWC", + "WMD", + "NGC", + "NHC", + "DSC", + "WSC", + "HFC", + "OLC", + "STC", + "DMC", + "CCC", + "WCC", + "BCP", + "MDB", + "BIR", + "SOL", + "STO", + "CER", + "COR", + "WOL", + "SMC", + "TWB", + "SHR", + "WAL", + "BCC", + "CMB", + "LBM", + "BOL", + "HBC", + "WIR", + "GTE", + "YCC", + "BHC", + "TBC", + "DEV", + "PEM", + "BNS", + "GCC", + "NSC", + "LBC", + "NYS", + "WIC", + "PET", + "SGL", + "HAM", + "VOG", + "NPT", + "CAR", + "GSCC", + "LBTH", + "BRD", + "SUF", + "WRX", + "NFK", + "NWT", + "SHF", + "ROT", + "DON", + "BAR", + "IOA", + "KECH", + "WMS", + "DEN", + "CWC", + "BRE", + "CPY", + "WAR", + "BGW", + "NHB", + "STH", + "MON", + "DOR", + "BRO", + "KKL", + "LEE", + "BED", + "GWY", + "FCC", + "CON", + "SBC", + "HRW", + "HPL", + "CBF", + "SWK", + "HUL", + "BLA", + "NTY", + "KEN", + "MCC", + "CAM", + "POW", + "SUN", + "IOW", + "BFO", + "WBC", + "SCF", + "WIM", + "WOK", + "TCBC", + "STY", + "KGN", + "RMD", + "SUT", + "WAD", + "GRW", + "TOR", + "PLY", + "BRA", + "CAL", + "RBC", + "SAL", + "ESX", + "HAF", + "REC", + "NTHW", + "NTHN", + "LAM", + "ISL", + "CDN", + "LEW", + "BNT", + "HLW", + "WSX", + "BAD", + "ENF", + "WAF", + "CRY", + "RED", + "HAR", + "EAL", + "BEX", + "BUR", + "THK", + "ESS", + "HAC", + "COL", + "HAV", + "NEW", + "RTL", + "WMF", + "SOS" + ] + }, + "applicants": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name", + "email", + "phone", + "address", + "colleagues", + "designated" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "address": { + "type": "object", + "required": [ + "addressLine1", + "addressLine2", + "addressLine3", + "postTown", + "county", + "postcode", + "country" + ], + "properties": { + "addressLine1": { + "type": [ + "string" + ] + }, + "addressLine2": { + "type": [ + "string" + ] + }, + "addressLine3": { + "type": [ + "string" + ] + }, + "postTown": { + "type": [ + "string" + ] + }, + "county": { + "type": [ + "string" + ] + }, + "postcode": { + "type": [ + "string" + ] + }, + "country": { + "type": [ + "string" + ] + } + } + }, + "colleagues": { + "type": "array", + "items": { + "type": "object", + "required": [ + "role", + "email", + "fullName", + "notificationRecipient" + ], + "properties": { + "role": { + "type": "string", + "enum": [ + "SOLICITOR", + "SOCIAL_WORKER", + "OTHER" + ] + }, + "title": { + "type": [ + "string" + ] + }, + "email": { + "type": [ + "string" + ] + }, + "phone": { + "type": [ + "string" + ] + }, + "fullName": { + "type": "string" + }, + "mainContact": { + "type": "boolean" + }, + "notificationRecipient": { + "type": "boolean" + } + } + } + }, + "designated": { + "type": "boolean" + } + } + } + }, + "respondents": { + "type": "array", + "items": { + "type": "object", + "required": [ + "firstName", + "lastName", + "gender", + "addressKnown", + "dateOfBirth", + "telephoneNumber", + "relationshipToChild" + + ], + "properties": { + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "gender": { + "enum": [ + "MALE", + "FEMALE", + "OTHER", + null + ] + }, + "genderIdentification": { + "type": [ + "string" + ] + }, + "addressKnown": { + "type": "boolean" + }, + "addressUnknownReason": { + "enum": [ + "No fixed abode", + "Person deceased", + null + ] + }, + "address": { + "type": "object", + "required": [ + "addressLine1", + "addressLine2", + "postTown", + "postcode", + "country" + ], + "properties": { + "addressLine1": { + "type": [ + "string" + ] + }, + "addressLine2": { + "type": [ + "string" + ] + }, + "addressLine3": { + "type": [ + "string" + ] + }, + "postTown": { + "type": [ + "string" + ] + }, + "county": { + "type": [ + "string" + ] + }, + "postcode": { + "type": [ + "string", + "null" + ] + }, + "country": { + "type": [ + "string" + ] + } + } + }, + "dateOfBirth": { + "type": [ + "string" + ] + }, + "telephoneNumber": { + "type": [ + "string" + ] + }, + "litigationIssues": { + "enum": [ + "YES", + "NO", + "DONT_KNOW" + ] + }, + "litigationIssuesDetails": { + "type": [ + "string" + ] + }, + "contactDetailsHidden": { + "type": "boolean" + }, + "contactDetailsHiddenReason": { + "type": [ + "string" + ] + }, + "relationshipToChild": { + "type": [ + "string" + ] + }, + "solicitor": { + "type": [ + "object" + ], + "required": [ + "email", + "firstName", + "lastName", + "organisationId", + "organisationName" + ], + "properties": { + "email": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "organisationId": { + "type": "string" + }, + "organisationName": { + "type": "string" + } + } + } + } + } + }, + "children": { + "type": "array", + "items": { + "type": "object", + "required": [ + "firstName", + "lastName", + "dateOfBirth", + "gender" + ], + "properties": { + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "dateOfBirth": { + "type": "string" + }, + "gender": { + "type": "string", + "enum": [ + "MALE", + "FEMALE", + "OTHER" + ] + }, + "genderIdentification": { + "type": [ + "string" + ] + }, + "livingSituation": { + "enum": [ + "Living with respondents", + "Living with other family or friends", + "Removed by Police, powers ending soon", + "Voluntarily in section 20 care order", + "In hospital and soon to be discharged", + "Other", + null + ] + }, + "livingSituationDetails": { + "type": [ + "string" + ] + }, + "address": { + "type": [ + "object" + ], + "required": [ + "addressLine1", + "addressLine2", + "postTown", + "postcode", + "country" + ], + "properties": { + "addressLine1": { + "type": [ + "string" + ] + }, + "addressLine2": { + "type": [ + "null", + "string" + ] + }, + "addressLine3": { + "type": [ + "string" + ] + }, + "postTown": { + "type": [ + "string" + ] + }, + "county": { + "type": [ + "string" + ] + }, + "postcode": { + "type": [ + "string" + ] + }, + "country": { + "type": [ + "string" + ] + } + } + }, + "careAndContactPlan": { + "type": [ + "string" + ] + }, + "detailsHidden": { + "type": "boolean" + }, + "socialWorkerName": { + "type": [ + "string" + ] + }, + "socialWorkerTelephoneNumber": { + "type": [ + "string" + ] + }, + "additionalNeeds": { + "type": "boolean" + }, + "additionalNeedsDetails": { + "type": [ + "string" + ] + }, + "litigationIssues": { + "enum": [ + "YES", + "NO", + "DONT_KNOW" + ] + }, + "litigationIssuesDetails": { + "type": [ + "string" + ] + }, + "solicitor": { + "type": [ + "object" + ], + "required": [ + "email", + "firstName", + "lastName", + "organisationId", + "organisationName" + ], + "properties": { + "email": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "organisationName": { + "type": "string" + }, + "organisationId": { + "type": "string" + } + } + }, + "fathersResponsibility": { + "enum": [ + "Yes", + "No", + "Don't know" + ] + } + } + } + }, + "others": { + "type": "array", + "items": { + "type": "object", + + "properties": { + "name": { + "type": "string" + }, + "dateOfBirth": { + "type": "string" + }, + "gender": { + "type": "string" + }, + "genderIdentification": { + "type": [ + "string" + ] + }, + "birthPlace": { + "type": "string" + }, + "addressKnown": { + "type": "boolean" + }, + "addressUnknownReason": { + "enum": [ + "No fixed abode", + "Person deceased" + ] + }, + "address": { + "type": "object", + "properties": { + "addressLine1": { + "type": [ + "string" + ] + }, + "addressLine2": { + "type": [ + "string" + ] + }, + "addressLine3": { + "type": [ + "string" + ] + }, + "postTown": { + "type": [ + "string" + ] + }, + "county": { + "type": [ + "string" + ] + }, + "postcode": { + "type": [ + "string" + ] + }, + "country": { + "type": [ + "string" + ] + } + } + }, + "telephone": { + "type": [ + "string" + ] + }, + "litigationIssues": { + "enum": [ + "YES", + "NO", + "DONT_KNOW" + ] + }, + "litigationIssuesDetails": { + "type": [ + "string" + ] + }, + "detailsHidden": { + "type": "boolean" + }, + "detailsHiddenReason": { + "type": [ + "string" + ] + } + } + } + }, + "hearingDetails": { + "type": "array", + "items": { + "type": "object", + + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "EMERGENCY_PROTECTION_ORDER", + "FACT_FINDING", + "CASE_MANAGEMENT", + "FURTHER_CASE_MANAGEMENT", + "ISSUE_RESOLUTION", + "FINAL", + "JUDGMENT_AFTER_HEARING", + "INTERIM_CARE_ORDER", + "ACCELERATED_DISCHARGE_OF_CARE", + "FAMILY_DRUG_ALCOHOL_COURT", + "PLACEMENT_HEARING", + "OTHER" + ] + }, + "typeDetails": { + "type": [ + "string" + ] + }, + "venue": { + "type": "string" + }, + "status": { + "enum": [ + "ADJOURNED", + "ADJOURNED_AND_RE_LISTED", + "ADJOURNED_TO_BE_RE_LISTED", + "VACATED", + "VACATED_AND_RE_LISTED", + "VACATED_TO_BE_RE_LISTED", + null + ] + }, + "startDate": { + "type": "string" + }, + "endDate": { + "type": "string" + }, + "attendance": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IN_PERSON", + "PHONE", + "VIDEO" + ] + } + }, + "cancellationReason": { + "enum": [ + "CAFCASS not allocated/present", + "No/poor CAFCASS analysis", + "Late expert report/assessment/ Poor expert report/assessment", + "New expert report/assessment required following a change in circumstances", + "No/poor medical records etc from other agency", + "Police disclosure/documents incomplete/not available", + "No courtroom available", + "No special measures", + "Interpreter not available", + "Lack of judicial continuity", + "Insufficient time listed or to complete hearing", + "Lawyers not instructed, present or ready, party or witness fail to attend", + "No key issue analysis", + "No/poor parental evidence", + "Official Solicitor not instructed/ready", + "Prior authority from LSC not available", + "Other legal aid", + "No/poor pre-proceedings preparation by LA, other than (core) social work assessment of the family", + "No friends/family identified before the hearing by LA", + "No/poor kinship assessments by LA", + "No expert instructed by LA", + "No/poor/late (core) social work assessment of the family by LA", + "New social work report/assessment required following a change in circumstances", + "No timetable for the child", + "New/alternative care plan", + "Placement order proceedings delay", + "No/poor placement evidence by LA", + "No threshold document", + "Case transferred", + "Need for an interim contested hearing", + "Other non compliance with directions", + "Consolidation with other family proceedings", + "Parallel proceedings", + "New baby/pregnancy", + "New Party joined", + "Immigration and international difficulties", + "Severe weather", + "Industrial action", + "Covid 19" + ] + }, + "preAttendanceDetails": { + "type": [ + "string" + ] + }, + "attendanceDetails": { + "type": [ + "string" + ] + } + } + } + }, + "internationalElement": { + "type": "object", + + "properties": { + "possibleCarer": { + "type": "boolean" + }, + "possibleCarerReason": { + "type": [ + "string" + ] + }, + "significantEvents": { + "type": "boolean" + }, + "significantEventsReason": { + "type": [ + "string" + ] + }, + "issues": { + "type": "boolean" + }, + "issuesReason": { + "type": [ + "string" + ] + }, + "proceedings": { + "type": "boolean" + }, + "proceedingsReason": { + "type": [ + "string" + ] + }, + "internationalAuthorityInvolvement": { + "type": "boolean" + }, + "internationalAuthorityInvolvementDetails": { + "type": [ + "string" + ] + } + } + }, + "previousProceedings": { + "type": "array", + "items": { + "type": "object", + + "properties": { + "proceedingStatus": { + "type": "string", + "enum": [ + "Ongoing", + "Previous" + ] + }, + "caseNumber": { + "type": [ + "string" + ] + }, + "started": { + "type": [ + "string" + ] + }, + "ended": { + "type": [ + "string" + ] + }, + "ordersMade": { + "type": [ + "string" + ] + }, + "judge": { + "type": [ + "string" + ] + }, + "children": { + "type": [ + "string" + ] + }, + "guardian": { + "type": [ + "string" + ] + }, + "sameGuardianNeeded": { + "type": "boolean" + }, + "sameGuardianDetails": { + "type": [ + "string" + ] + } + } + } + }, + "risks": { + "type": "object", + + "properties": { + "neglectOccurrences": { + "type": [ + "array" + ], + "items": { + "type": "string" + } + }, + "sexualAbuseOccurrences": { + "type": [ + "array" + ], + "items": { + "type": "string" + } + }, + "physicalHarmOccurrences": { + "type": [ + "array" + ], + "items": { + "type": "string" + } + }, + "emotionalHarmOccurrences": { + "type": [ + "array" + ], + "items": { + "type": "string" + } + } + } + }, + "factorsParenting": { + "type": "object", + + "properties": { + "alcoholDrugAbuse": { + "type": "boolean" + }, + "alcoholDrugAbuseReason": { + "type": [ + "string" + ] + }, + "domesticViolence": { + "type": "boolean" + }, + "domesticViolenceReason": { + "type": [ + "string" + ] + }, + "anythingElse": { + "type": "boolean" + }, + "anythingElseReason": { + "type": [ + "string" + ] + } + } + }, + "caseManagementLocation": { + "type": "object", + "required": [ + "region", + "baseLocation" + ], + "properties": { + "region": { + "type": [ + "string" + ] + }, + "baseLocation": { + "type": [ + "string" + ] + } + } + }, + "caseDocuments": { + "type": "array", + "items": { + "type": "object", + "required": [ + "removed", + "documentCategory", + "documentId", + "documentFileName", + "uploadTimestamp" + ], + "properties": { + "removed": { + "type": "boolean" + }, + "documentCategory": { + "type": "string" + }, + "documentId": { + "type": "string" + }, + "documentFileName": { + "type": "string" + }, + "uploadTimestamp": { + "type": "string" + } + } + } + } + } + } + } + } + } + } +} diff --git a/playwright-e2e/caseData/caseCaffcassAPISearchAllFieldData.json b/playwright-e2e/caseData/caseCaffcassAPISearchAllFieldData.json new file mode 100644 index 00000000000..12c9bbab3bf --- /dev/null +++ b/playwright-e2e/caseData/caseCaffcassAPISearchAllFieldData.json @@ -0,0 +1,2318 @@ + +{ + "state": "PREPARE_FOR_HEARING", + "caseData": { + "guardianEvidenceList": [ + { + "id": "71ed840f-ae3d-468f-8278-264888d6cd7b", + "value": { + "markAsConfidential": "No", + "document": { + "upload_timestamp": "2024-08-28T18:15:00.043284148", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "C2 application for the sealing.pdf", + "document_url": "${TEST_DOCUMENT_URL}" + }, + "uploaderType": "HMCTS", + "uploaderCaseRoles": [] + } + } + ], + "noticeOfProceedingsBundle": [ + { + "id": "38dc91e4-82e4-41d0-894d-5337dcce3b37", + "value": { + "translatedDocument": null, + "translationRequirements": "NO", + "document": { + "upload_timestamp": "2024-08-27T16:46:49.648350833", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Notice_of_proceedings_c6.pdf", + "document_url": "${TEST_DOCUMENT_URL}" + }, + "translationUploadDateTime": null, + "needTranslation": "NO" + } + }, + { + "id": "65137cb2-63f4-4cce-bd2a-90ad83f8dbad", + "value": { + "translatedDocument": null, + "translationRequirements": "NO", + "document": { + "upload_timestamp": "2024-08-27T16:46:49.648350833", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Notice_of_proceedings_c6a.pdf", + "document_url":"${TEST_DOCUMENT_URL}" + }, + "translationUploadDateTime": null, + "needTranslation": "NO" + } + } + ], + "sendToCtsc": "Yes", + "posStmtList": [ + { + "id": "9c93e517-fd04-4ee3-91d2-745a089a473e", + "value": { + "markAsConfidential": "No", + "document": { + "upload_timestamp": "2024-08-27T16:36:41.235667068", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "dummy.pdf", + "document_url": "${TEST_DOCUMENT_URL}" + }, + "uploaderType": "DESIGNATED_LOCAL_AUTHORITY", + "uploaderCaseRoles": [ + "LASOLICITOR" + ] + } + }, + { + "id": "cdbc08b4-0f4a-4c7f-8233-74afbc75179f", + "value": { + "markAsConfidential": "No", + "document": { + "upload_timestamp": "2024-08-27T16:36:41.235667068", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "dummy.pdf", + "document_url": "${TEST_DOCUMENT_URL}" + }, + "uploaderType": "DESIGNATED_LOCAL_AUTHORITY", + "uploaderCaseRoles": [ + "LASOLICITOR" + ] + } + } + ], + "caseSummaryNextHearingType": "Judgment after hearing", + "caseSummaryNextHearingDateTime": "2024-10-12T10:00:00", + "caseSummaryFlagAddedByFullName": null, + "caseSummaryPreviousHearingDate": "2024-03-12", + "parentAssessmentList": [ + { + "id": "a8f4ef0f-8f0a-4f9c-bdc0-ad0f61615bbd", + "value": { + "markAsConfidential": "No", + "document": { + "upload_timestamp": "2024-08-28T18:06:25.115911210", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "C2 application for the sealing.docx", + "document_url": "${TEST_DOCUMENT_URL}" }, + "uploaderType": "HMCTS", + "uploaderCaseRoles": [] + } + } + ], + "submittedForm": { + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Test.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "submissionConsent": [ + "agree" + ], + "caseName": "TestCafcassAPI", + "additionalApplicationsBundle": [ + { + "id": "971bff55-b576-4782-a360-47a72c1d18dd", + "value": { + "amountToPay": "25500", + "otherApplicationsBundle": { + "respondents": [ + { + "id": "6c709151-7f8c-45ef-a43a-1975c44468a8", + "value": { + "legalRepresentation": "Yes", + "legalCounsellors": [], + "solicitor": { + "lastName": "respondentSol", + "firstName": "Solicitor", + "telephoneNumber": { + "telephoneNumber": "01534756978" + }, + "colleaguesToBeNotified": [], + "organisation": { + "OrganisationID": "D25VR7V", + "OrganisationName": "Private solicitors" + }, + "email": "asfsd@mailinator.com", + "unregisteredOrganisation": { + "address": {}, + "name": null + }, + "regionalOfficeAddress": {} + }, + "representedBy": [], + "party": { + "litigationIssues": "NO", + "lastName": "One", + "firstName": "Respondent", + "address": {}, + "telephoneNumber": { + "telephoneNumber": "099999999" + }, + "gender": "Male", + "dateOfBirth": "1998-05-04", + "contactDetailsHidden": "No", + "addressKnow": "No", + "relationshipToChild": "Mother", + "partyId": "e1ac35ac-c5c9-4988-a9c5-7152142d85ce", + "addressNotKnowReason": "Person deceased" + } + } + }, + { + "id": "b9d5d7a4-7963-437f-b53c-a76a79e8149f", + "value": { + "legalRepresentation": "Yes", + "legalCounsellors": [], + "solicitor": { + "lastName": "two", + "firstName": "respondent", + "telephoneNumber": { + "telephoneNumber": "9780898908908" + }, + "colleaguesToBeNotified": [], + "organisation": { + "OrganisationID": "4ZYL0HK", + "OrganisationName": "FPLSolicitorOrg" + }, + "email": "respondent2@emal.com", + "unregisteredOrganisation": { + "address": {}, + "name": null + }, + "regionalOfficeAddress": {} + }, + "representedBy": [], + "party": { + "lastName": "two", + "firstName": "respodent", + "litigationIssues": "YES", + "telephoneNumber": { + "telephoneNumber": "01534756978" + }, + "address": { + "AddressLine3": "40 Livingstone Road", + "AddressLine2": "Dashwood Court", + "AddressLine1": "5", + "Country": "United Kingdom", + "PostTown": "Hounslow", + "PostCode": "TW3 1XZ", + "County": "" + }, + "gender": "Female", + "dateOfBirth": "2000-04-03", + "contactDetailsHidden": "No", + "relationshipToChild": "Relation ship to the child", + "addressKnow": "Yes" + } + } + } + ], + "uploadedDateTime": "27 August 2024, 5:40pm", + "applicationType": "C1_WITH_SUPPLEMENT", + "author": "local-authority-swansea-0001@maildrop.cc", + "document": { + "upload_timestamp": "2024-08-27T16:41:03.473648551", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "C2 application for the sealing.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "applicantName": "Child One, Child 1", + "id": "5bf6649d-88ee-4a38-b5e5-f8d82db61157", + "supplementsBundle": [], + "supportingEvidenceBundle": [], + "urgencyTimeFrameType": "WITHIN_2_DAYS" + }, + "uploadedDateTime": "27 August 2024, 5:40pm", + "author": "local-authority-swansea-0001@maildrop.cc", + "pbaPayment": { + "pbaNumber": "PBA1234567", + "clientCode": "client code", + "usePbaPayment": "Yes", + "fileReference": "cust" + }, + "applicationReviewed": "NO", + "c2DocumentBundleLA": { + "respondents": [ + { + "id": "6c709151-7f8c-45ef-a43a-1975c44468a8", + "value": { + "legalRepresentation": "Yes", + "legalCounsellors": [], + "solicitor": { + "lastName": "respondentSol", + "firstName": "Solicitor", + "telephoneNumber": { + "telephoneNumber": "01534756978" + }, + "colleaguesToBeNotified": [], + "organisation": { + "OrganisationID": "D25VR7V", + "OrganisationName": "Private solicitors" + }, + "email": "asfsd@mailinator.com", + "unregisteredOrganisation": { + "address": {}, + "name": null + }, + "regionalOfficeAddress": {} + }, + "representedBy": [], + "party": { + "litigationIssues": "NO", + "lastName": "One", + "firstName": "Respondent", + "address": {}, + "telephoneNumber": { + "telephoneNumber": "099999999" + }, + "gender": "Male", + "dateOfBirth": "1998-05-04", + "contactDetailsHidden": "No", + "addressKnow": "No", + "relationshipToChild": "Mother", + "partyId": "e1ac35ac-c5c9-4988-a9c5-7152142d85ce", + "addressNotKnowReason": "Person deceased" + } + } + }, + { + "id": "b9d5d7a4-7963-437f-b53c-a76a79e8149f", + "value": { + "legalRepresentation": "Yes", + "legalCounsellors": [], + "solicitor": { + "lastName": "two", + "firstName": "respondent", + "telephoneNumber": { + "telephoneNumber": "9780898908908" + }, + "colleaguesToBeNotified": [], + "organisation": { + "OrganisationID": "4ZYL0HK", + "OrganisationName": "FPLSolicitorOrg" + }, + "email": "respondent2@emal.com", + "unregisteredOrganisation": { + "address": {}, + "name": null + }, + "regionalOfficeAddress": {} + }, + "representedBy": [], + "party": { + "lastName": "two", + "firstName": "respodent", + "litigationIssues": "YES", + "telephoneNumber": { + "telephoneNumber": "01534756978" + }, + "address": { + "AddressLine3": "40 Livingstone Road", + "AddressLine2": "Dashwood Court", + "AddressLine1": "5", + "Country": "United Kingdom", + "PostTown": "Hounslow", + "PostCode": "TW3 1XZ", + "County": "" + }, + "gender": "Female", + "dateOfBirth": "2000-04-03", + "contactDetailsHidden": "No", + "relationshipToChild": "Relation ship to the child", + "addressKnow": "Yes" + } + } + } + ], + "uploadedDateTime": "27 August 2024, 5:40pm", + "author": "local-authority-swansea-0001@maildrop.cc", + "document": { + "upload_timestamp": "2024-08-27T16:41:03.473648551", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "C2 application for the sealing.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "draftOrdersBundle": [], + "applicantName": "Child One, Child 1", + "id": "4187112c-1bfc-4fd2-8053-2230147ff714", + "supplementsBundle": [], + "type": "WITH_NOTICE", + "supportingEvidenceBundle": [], + "urgencyTimeFrameType": "SAME_DAY", + "c2AdditionalOrdersRequested": [ + "CHANGE_SURNAME_OR_REMOVE_JURISDICTION" + ] + }, + "c2DocumentBundleConfidential": { + "respondents": [ + { + "id": "6c709151-7f8c-45ef-a43a-1975c44468a8", + "value": { + "legalRepresentation": "Yes", + "legalCounsellors": [], + "solicitor": { + "lastName": "respondentSol", + "firstName": "Solicitor", + "telephoneNumber": { + "telephoneNumber": "01534756978" + }, + "colleaguesToBeNotified": [], + "organisation": { + "OrganisationID": "D25VR7V", + "OrganisationName": "Private solicitors" + }, + "email": "asfsd@mailinator.com", + "unregisteredOrganisation": { + "address": {}, + "name": null + }, + "regionalOfficeAddress": {} + }, + "representedBy": [], + "party": { + "litigationIssues": "NO", + "lastName": "One", + "firstName": "Respondent", + "address": {}, + "telephoneNumber": { + "telephoneNumber": "099999999" + }, + "gender": "Male", + "dateOfBirth": "1998-05-04", + "contactDetailsHidden": "No", + "addressKnow": "No", + "relationshipToChild": "Mother", + "partyId": "e1ac35ac-c5c9-4988-a9c5-7152142d85ce", + "addressNotKnowReason": "Person deceased" + } + } + }, + { + "id": "b9d5d7a4-7963-437f-b53c-a76a79e8149f", + "value": { + "legalRepresentation": "Yes", + "legalCounsellors": [], + "solicitor": { + "lastName": "two", + "firstName": "respondent", + "telephoneNumber": { + "telephoneNumber": "9780898908908" + }, + "colleaguesToBeNotified": [], + "organisation": { + "OrganisationID": "4ZYL0HK", + "OrganisationName": "FPLSolicitorOrg" + }, + "email": "respondent2@emal.com", + "unregisteredOrganisation": { + "address": {}, + "name": null + }, + "regionalOfficeAddress": {} + }, + "representedBy": [], + "party": { + "lastName": "two", + "firstName": "respodent", + "litigationIssues": "YES", + "telephoneNumber": { + "telephoneNumber": "01534756978" + }, + "address": { + "AddressLine3": "40 Livingstone Road", + "AddressLine2": "Dashwood Court", + "AddressLine1": "5", + "Country": "United Kingdom", + "PostTown": "Hounslow", + "PostCode": "TW3 1XZ", + "County": "" + }, + "gender": "Female", + "dateOfBirth": "2000-04-03", + "contactDetailsHidden": "No", + "relationshipToChild": "Relation ship to the child", + "addressKnow": "Yes" + } + } + } + ], + "uploadedDateTime": "27 August 2024, 5:40pm", + "author": "local-authority-swansea-0001@maildrop.cc", + "document": { + "upload_timestamp": "2024-08-27T16:41:03.473648551", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "C2 application for the sealing.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "draftOrdersBundle": [], + "applicantName": "Child One, Child 1", + "id": "4187112c-1bfc-4fd2-8053-2230147ff714", + "supplementsBundle": [], + "type": "WITH_NOTICE", + "supportingEvidenceBundle": [], + "urgencyTimeFrameType": "SAME_DAY", + "c2AdditionalOrdersRequested": [ + "CHANGE_SURNAME_OR_REMOVE_JURISDICTION" + ] + }, + "hasConfidentialC2": "YES" + } + } + ], + "caseSummaryCafcassGuardian": null, + "familyManCaseNumber": "Famil1234", + "allocatedJudge": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "caseSummaryFlagAssessmentForm": null, + "caseSummaryNextHearingCMO": null, + "others": { + "additionalOthers": [ + { + "id": "ea7759c3-63cc-4be3-9d2f-e26f9487903c", + "value": { + "address": { + "AddressLine3": "40 Livingstone Road", + "AddressLine2": "Dashwood Court", + "AddressLine1": "38", + "Country": "United Kingdom", + "PostTown": "Hounslow", + "PostCode": "TW3 1XZ", + "County": "" + }, + "gender": "They identify in another way", + "detailsHidden": "No", + "genderIdentification": "yet", + "telephone": "01534756978", + "representedBy": [], + "birthPlace": "spain", + "litigationIssues": "YES", + "detailsHiddenReason": null, + "DOB": "2000-05-05", + "name": "other person2", + "addressKnow": "Yes", + "addressNotKnowReason": null, + "litigationIssuesDetails": null, + "childInformation": null + } + }, + { + "id": "a4716d81-ca1d-4bc2-8f19-bda656289b62", + "value": { + "address": {}, + "gender": "Female", + "detailsHidden": "No", + "genderIdentification": null, + "telephone": null, + "representedBy": [], + "birthPlace": "NY", + "litigationIssues": "DONT_KNOW", + "detailsHiddenReason": null, + "DOB": "2001-05-05", + "name": "Other person3", + "addressKnow": "No", + "addressNotKnowReason": "Person deceased", + "litigationIssuesDetails": null, + "childInformation": "What is happ" + } + } + ], + "firstOther": { + "address": {}, + "gender": "Female", + "detailsHidden": "No", + "genderIdentification": null, + "telephone": "0999534645", + "representedBy": [], + "birthPlace": "Uk", + "litigationIssues": "NO", + "detailsHiddenReason": null, + "DOB": "1980-05-04", + "name": "ohter person1", + "addressKnow": "No", + "addressNotKnowReason": "No fixed abode", + "litigationIssuesDetails": null, + "childInformation": null + } + }, + "skeletonArgumentList": [ + { + "id": "3f3b4d60-feee-4d28-90c2-255608365ae3", + "value": { + "markAsConfidential": "No", + "hasConfidentialAddress": "No", + "uploaderType": "DESIGNATED_LOCAL_AUTHORITY", + "document": { + "upload_timestamp": "2024-08-27T16:36:41.235667068", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "C2 application for the sealing.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "documentAcknowledge": [ + "ACK_RELATED_TO_CASE" + ], + "uploaderCaseRoles": [ + "LASOLICITOR" + ] + } + }, + { + "id": "c9e80ead-f345-4004-811d-1f234faa38cc", + "value": { + "markAsConfidential": "No", + "hasConfidentialAddress": "No", + "uploaderType": "HMCTS", + "document": { + "upload_timestamp": "2024-08-28T18:15:00.043284148", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Supplement doc in word format.docx", + "document_url": "${TEST_DOCUMENT_URL}" }, + "documentAcknowledge": [ + "ACK_RELATED_TO_CASE" + ], + "uploaderCaseRoles": [] + } + } + ], + "caseSummaryLASolicitorName": "applicant Solicitor", + "dfjArea": "WEST_LONDON", + "caseSummaryPreviousHearingType": "Final", + "caseLocalAuthority": "SA", + "caseLocalAuthorityName": "Swansea City Council", + "localAuthorityPolicy": { + "Organisation": { + "OrganisationID": "ORGSA", + "OrganisationName": "Swansea City Council" + }, + "OrgPolicyCaseAssignedRole": "[LASOLICITOR]" + }, + "caseSummaryHasFinalHearing": "Yes", + "dateAndTimeSubmitted": "TO BE FILLED WITH VALID DATA", + "caseSummaryCourtName": "Family Court sitting at Barnet", + "hearingOrdersBundlesDraftReview": [], + "deadline26week": "2025-02-25", + "grounds": { + "thresholdDetails": "Give details", + "thresholdReason": [ + "beyondControl" + ] + }, + "correspondenceDocList": [ + { + "id": "2a70fd67-b218-4253-baa5-13ffb0b77c8c", + "value": { + "markAsConfidential": "No", + "document": { + "upload_timestamp": "2024-08-28T18:06:25.115911210", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "EPS.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "uploaderType": "HMCTS", + "uploaderCaseRoles": [] + } + } + ], + "caseSummaryNextHearingEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "allocationProposal": { + "proposal": "District judge", + "proposalReason": "Give details" + }, + "previousProceedingList": [ + { + "id": "ef41508b-1d27-49c0-aea2-227fcaaeaf0b", + "value": { + "markAsConfidential": "No", + "document": { + "upload_timestamp": "2024-08-28T18:06:25.115911210", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "D10.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "uploaderType": "HMCTS", + "uploaderCaseRoles": [] + } + } + ], + "localAuthorities": [ + { + "id": "2bf3d806-b9fb-4186-8e58-f91853b56240", + "value": { + "address": { + "AddressLine3": "40 Fleet street", + "AddressLine2": "Swansea Central Square 11", + "AddressLine1": "Flat 1, Swansea Apartments", + "Country": "county", + "PostTown": "Swansea", + "PostCode": "CR0 2GE", + "County": "United Kingdom" + }, + "designated": "Yes", + "phone": "1245678909000", + "pbaNumber": "PBA1234567", + "clientCode": "Client code", + "legalTeamManager": "hihjhj", + "colleagues": [ + { + "id": "3d8b502d-962a-4758-b33b-26424a9751b7", + "value": { + "reference": "Solcitor reference", + "mainContact": "Yes", + "notificationRecipient": "Yes", + "role": "SOLICITOR", + "dx": "DX code", + "phone": "01534756978", + "fullName": "applicant Solicitor", + "title": null, + "email": "asfsd@mailinator.com" + } + } + ], + "customerReference": "customer", + "name": "Swansea City Council", + "id": "W9V61CP", + "email": "FamilyPublicLaw+sa@gmail.com" + } + } + ], + "orders": { + "orderType": [ + "SUPERVISION_ORDER" + ], + "particularsOfChildren": [], + "emergencyProtectionOrders": [], + "directionDetails": "Give Details", + "epoType": null, + "emergencyProtectionOrderDirections": [], + "childAssessmentOrderContactDirections": null, + "court": "117", + "particularsOfChildrenDetails": null, + "childRecoveryOrderDirectionsAppliedFor": null, + "educationSupervisionOrderPriorConsultationType": [], + "excluded": null, + "educationSupervisionOrderDirectionsAppliedFor": null, + "directions": "Yes", + "educationSupervisionOrderPriorConsultationOtherLA": null, + "childAssessmentOrderAssessmentDirections": null, + "emergencyProtectionOrderDirectionDetails": null, + "emergencyProtectionOrderDetails": null, + "otherOrder": null + }, + "caseSummaryAllocatedJudgeName": "Mrs Calderon", + "dateSubmitted": "TO BE FILLED WITH VALID DATA", + "caseSummaryNextHearingDate": "2024-10-12", + "hearingOrdersBundlesDrafts": [ + { + "id": "e66d8c9c-6f71-4c62-9036-aa0466fdc270", + "value": { + "orders": [ + { + "id": "8cbec5a7-0621-4850-932b-d826ae2586a1", + "value": { + "translationRequirements": "NO", + "uploaderType": "SOLICITOR", + "judgeTitleAndName": "Mrs Calderon", + "needTranslation": "NO", + "type": "AGREED_CMO", + "title": "Agreed CMO discussed at hearing", + "hearingId": "62329bcf-d8e0-4aee-b5ce-627db0bc7bb6", + "hearing": "Interim care order hearing, 12 October 2023", + "dateSent": "2024-08-28", + "documentAcknowledge": [ + "ACK_RELATED_TO_CASE" + ], + "others": [], + "order": { + "upload_timestamp": "2024-08-28T17:50:47.986448064", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "CMO Order uploaded LA.docx", + "document_url": "${TEST_DOCUMENT_URL}" }, + "uploaderCaseRoles": [ + "SOLICITORB" + ], + "status": "SEND_TO_JUDGE" + } + } + ] + } + } + ], + "westLondonDFJCourt": "117", + "caseSummaryCaseFlagNotes": null, + "caseManagementLocation": { + "baseLocation": "229786", + "region": "1" + }, + "caseSummaryOrdersRequested": "Supervision order", + "hearingDetails": [ + { + "id": "efddcb27-bab1-42ae-94dd-ca88196551c4", + "value": { + "hearingDuration": "1 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2025-08-19T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "FACT_FINDING", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 1, + "noticeOfHearing": { + "upload_timestamp": "2024-08-28T18:21:31.55409705", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Notice_of_hearing_28August.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "attendanceDetails": "ghgjh", + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2025-08-19T10:00:00", + "status": null + } + }, + { + "id": "340fe481-a9f3-4ca2-b568-6063e88d270d", + "value": { + "hearingDuration": "5 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2025-04-09T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "ISSUE_RESOLUTION", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 5, + "noticeOfHearing": null, + "attendanceDetails": "add", + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2025-04-03T10:00:00", + "status": null + } + }, + { + "id": "e10dfc5f-31ee-4593-ae9d-39e8e3a80938", + "value": { + "hearingDuration": "4 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-11-15T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "CASE_MANAGEMENT", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 4, + "noticeOfHearing": { + "upload_timestamp": "2024-08-28T18:26:08.13596167", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Notice_of_hearing_28August.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "attendanceDetails": "cda", + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2024-11-12T10:00:00", + "status": null + } + }, + { + "id": "2e805752-aea8-41d7-afee-2d1614b83932", + "value": { + "hearingDuration": "2 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-11-13T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "MAGISTRATES", + "judgeFullName": "Legal advisor", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEmailAddress": "email@email.com" + }, + "hearingNeedsBooked": null, + "type": "ACCELERATED_DISCHARGE_OF_CARE", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Legal advisor (JP)", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 2, + "noticeOfHearing": { + "upload_timestamp": "2024-08-29T08:24:18.230331383", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Notice_of_hearing_29August.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "attendanceDetails": null, + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2024-11-12T10:00:00", + "status": null + } + }, + { + "id": "d5b6ebf5-bf10-44e8-8848-5ee8a345285b", + "value": { + "hearingDuration": "4 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-11-15T09:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "FACT_FINDING", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 4, + "noticeOfHearing": { + "upload_timestamp": "2024-08-28T19:29:54.772243035", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Notice_of_hearing_28August.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "attendanceDetails": null, + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2024-11-12T09:00:00", + "status": null + } + }, + { + "id": "388871b5-e156-4861-ae37-c31cd9931ff9", + "value": { + "hearingDuration": "5 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-10-17T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "JUDGMENT_AFTER_HEARING", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 5, + "noticeOfHearing": { + "upload_timestamp": "2024-08-29T08:22:37.231444519", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Notice_of_hearing_29August.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "attendanceDetails": "sda", + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2024-10-12T10:00:00", + "status": null + } + }, + { + "id": "4dc66f0d-adda-462e-b99f-5d1c16e7b87b", + "value": { + "hearingDuration": "3 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-03-14T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "INTERIM_CARE_ORDER", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 3, + "noticeOfHearing": null, + "attendanceDetails": "dded", + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2024-03-12T10:00:00", + "status": null + } + }, + { + "id": "0f52beb7-7fc4-45d4-9811-9be8a8f349a6", + "value": { + "hearingDuration": "4 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-03-15T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "FINAL", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 4, + "noticeOfHearing": { + "upload_timestamp": "2024-08-29T08:20:19.181308358", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Notice_of_hearing_29August.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "attendanceDetails": "add", + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2024-03-12T10:00:00", + "status": null + } + }, + { + "id": "62329bcf-d8e0-4aee-b5ce-627db0bc7bb6", + "value": { + "hearingDuration": "2 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2023-10-13T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "INTERIM_CARE_ORDER", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": null, + "usePreviousVenue": null, + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": "8cbec5a7-0621-4850-932b-d826ae2586a1", + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 2, + "noticeOfHearing": { + "upload_timestamp": "2024-08-27T16:46:49.648350833", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Notice_of_hearing_27August.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "attendanceDetails": null, + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2023-10-12T10:00:00", + "status": null + } + }, + { + "id": "c0142fbd-5b57-400d-8294-ee8ded69c1bf", + "value": { + "hearingDuration": "5 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2023-02-09T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "PLACEMENT_HEARING", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 5, + "noticeOfHearing": null, + "attendanceDetails": "ddd", + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON", + "VIDEO", + "PHONE" + ], + "startDate": "2023-02-05T10:00:00", + "status": null + } + }, + { + "id": "66f66016-97c4-4607-9166-0814ca9f4f15", + "value": { + "hearingDuration": "5 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-11-18T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "FURTHER_CASE_MANAGEMENT", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": null, + "usePreviousVenue": null, + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 5, + "noticeOfHearing": null, + "attendanceDetails": null, + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2024-11-12T10:00:00", + "status": null + } + }, + { + "id": "ce16dd34-7a0d-47e7-be7c-70bf0896291f", + "value": { + "hearingDuration": "6 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-11-26T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "INTERIM_CARE_ORDER", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": {}, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 6, + "noticeOfHearing": null, + "attendanceDetails": null, + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "VIDEO" + ], + "startDate": "2024-11-19T10:00:00", + "status": null + } + } + ], + "caseSummaryFlagAddedByEmail": null, + "placements": [ + { + "id": "4ade79b1-3ec2-4b96-a5a1-43ca12e10683", + "value": { + "placementRespondentsToNotify": [ + { + "id": "6c709151-7f8c-45ef-a43a-1975c44468a8", + "value": { + "legalRepresentation": "Yes", + "legalCounsellors": [], + "solicitor": { + "lastName": "respondentSol", + "firstName": "Solicitor", + "telephoneNumber": { + "telephoneNumber": "01534756978" + }, + "colleaguesToBeNotified": [], + "organisation": { + "OrganisationID": "D25VR7V", + "OrganisationName": "Private solicitors" + }, + "email": "asfsd@mailinator.com", + "unregisteredOrganisation": { + "address": {}, + "name": null + }, + "regionalOfficeAddress": {} + }, + "representedBy": [], + "party": { + "litigationIssues": "NO", + "lastName": "One", + "firstName": "Respondent", + "address": {}, + "telephoneNumber": { + "telephoneNumber": "099999999" + }, + "gender": "Male", + "dateOfBirth": "1998-05-04", + "contactDetailsHidden": "No", + "addressKnow": "No", + "relationshipToChild": "Mother", + "partyId": "e1ac35ac-c5c9-4988-a9c5-7152142d85ce", + "addressNotKnowReason": "Person deceased" + } + } + }, + { + "id": "b9d5d7a4-7963-437f-b53c-a76a79e8149f", + "value": { + "legalRepresentation": "Yes", + "legalCounsellors": [], + "solicitor": { + "lastName": "two", + "firstName": "respondent", + "telephoneNumber": { + "telephoneNumber": "9780898908908" + }, + "colleaguesToBeNotified": [], + "organisation": { + "OrganisationID": "4ZYL0HK", + "OrganisationName": "FPLSolicitorOrg" + }, + "email": "respondent2@emal.com", + "unregisteredOrganisation": { + "address": {}, + "name": null + }, + "regionalOfficeAddress": {} + }, + "representedBy": [], + "party": { + "lastName": "two", + "firstName": "respodent", + "litigationIssues": "YES", + "telephoneNumber": { + "telephoneNumber": "01534756978" + }, + "address": { + "AddressLine3": "40 Livingstone Road", + "AddressLine2": "Dashwood Court", + "AddressLine1": "5", + "Country": "United Kingdom", + "PostTown": "Hounslow", + "PostCode": "TW3 1XZ", + "County": "" + }, + "gender": "Female", + "dateOfBirth": "2000-04-03", + "contactDetailsHidden": "No", + "relationshipToChild": "Relation ship to the child", + "addressKnow": "Yes" + } + } + } + ], + "placementApplication": { + "upload_timestamp": "2024-08-29T08:54:54.523634615", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Parent Assessment.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "placementUploadDateTime": "2024-08-29T09:54:52.075516319", + "isSubmitted": "YES", + "placementConfidentialDocuments": [ + { + "id": "a6c8fa8b-ba12-4849-a693-eac457e3ded8", + "value": { + "document": { + "upload_timestamp": "2024-08-29T08:54:52.158694141", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "AdditionalDoc1.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "type": "ANNEX_B", + "documentAcknowledge": [ + "ACK_RELATED_TO_CASE" + ] + } + } + ], + "placementChildId": "de9076cd-1cac-41d3-871f-9b6f68185953", + "placementSupportingDocuments": [ + { + "id": "48507996-7862-42d7-970e-83021295ea72", + "value": { + "document": { + "upload_timestamp": "2024-08-29T08:54:52.158694141", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Birth Certificate.docx", + "document_url": "${TEST_DOCUMENT_URL}" }, + "type": "BIRTH_ADOPTION_CERTIFICATE" + } + }, + { + "id": "4fa6d095-4c32-41a0-ad1e-351677ab876e", + "value": { + "document": { + "upload_timestamp": "2024-08-29T08:54:52.158694141", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "C2 application for the sealing.docx", + "document_url": "${TEST_DOCUMENT_URL}" }, + "type": "STATEMENT_OF_FACTS" + } + } + ], + "placementChildName": "Child 2 Second", + "placementNoticeDocuments": [] + } + } + ], + "caseSummaryLASolicitorEmail": "asfsd@mailinator.com", + "factorsParenting": { + "alcoholDrugAbuse": "Yes", + "domesticViolence": "No", + "domesticViolenceReason": null, + "anythingElse": "Yes", + "anythingElseReason": "Given details of other harms", + "alcoholDrugAbuseReason": "Test" + }, + "caseManagementCategory": { + "value": { + "code": "FPL", + "label": "Family Public Law" + }, + "list_items": [ + { + "code": "FPL", + "label": "Family Public Law" + } + ] + }, + "caseSummaryLanguageRequirement": "No", + "caseSummaryDateOfIssue": "2024-08-27", + "caseSummaryPreviousCourtName": null, + "hearing": { + "reason": null, + "reducedNoticeReason": null, + "reducedNotice": "No", + "reason12Days": null, + "respondentsAwareReason": null, + "type": "Urgent preliminary case management heari", + "timeFrame": "Within 18 days", + "withoutNotice": "No", + "respondentsAware": "No", + "reason2Days": null, + "type_GiveReason": "Give reasoj", + "reason7Days": null, + "withoutNoticeReason": null + }, + "cancelledHearingDetails": [ + { + "id": "27220e88-2ff6-4ec3-9b8f-09f43cf2a0db", + "value": { + "hearingDuration": "5 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-10-24T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "INTERIM_CARE_ORDER", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": "other reason", + "vacatedDate": "2024-08-02", + "hearingDays": 5, + "noticeOfHearing": null, + "attendanceDetails": "dsfas", + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2024-10-19T10:00:00", + "status": "VACATED" + } + }, + { + "id": "f2a2985a-dcd1-4b63-96bf-44ca9fb9dd51", + "value": { + "hearingDuration": "4 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-10-09T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "INTERIM_CARE_ORDER", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": "CA1", + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": "2024-08-22", + "hearingDays": 4, + "noticeOfHearing": { + "upload_timestamp": "2024-08-29T08:38:52.729948552", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Notice_of_hearing_29August.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "attendanceDetails": null, + "noticeOfHearingVacated": { + "upload_timestamp": "2024-08-29T08:39:57.582731661", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Notice_of_hearing_vacated_29August.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "typeReason": null, + "attendance": [ + "VIDEO" + ], + "startDate": "2024-10-05T10:00:00", + "status": "VACATED_AND_RE_LISTED" + } + }, + { + "id": "c2bcb14a-aefa-4ca9-969a-adf8c0ff91c0", + "value": { + "hearingDuration": "6 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-10-18T09:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "FURTHER_CASE_MANAGEMENT", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": "LW3", + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": "2024-08-04", + "hearingDays": 6, + "noticeOfHearing": null, + "attendanceDetails": null, + "noticeOfHearingVacated": { + "upload_timestamp": "2024-08-29T08:41:44.978423573", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Notice_of_hearing_vacated_29August.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2024-10-12T09:00:00", + "status": "VACATED_AND_RE_LISTED" + } + }, + { + "id": "251403cb-40c4-425b-bbc7-fb7f95e99e0d", + "value": { + "hearingDuration": "3 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-02-06T10:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "JUDGMENT_AFTER_HEARING", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": "JU1", + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": null, + "vacatedDate": null, + "hearingDays": 3, + "noticeOfHearing": null, + "attendanceDetails": "f", + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "IN_PERSON" + ], + "startDate": "2024-02-02T10:00:00", + "status": "ADJOURNED_TO_BE_RE_LISTED" + } + }, + { + "id": "39afd2e1-0972-4aa8-8997-153a78702d2d", + "value": { + "hearingDuration": "5 days", + "venue": "37", + "allocatedJudgeLabel": "Mrs Calderon", + "endDate": "2024-02-22T08:00:00", + "customPreviousVenue": null, + "venueCustomAddress": {}, + "translationUploadDateTime": null, + "judgeAndLegalAdvisor": { + "judgeTitle": "OTHER", + "judgeFullName": "Mrs Susan Calderon", + "judgeJudicialUser": { + "personalCode": null, + "idamId": null + }, + "judgeEnterManually": "NO", + "judgeEmailAddress": "Susan.Calderon.JP@ejudiciary.net", + "judgeLastName": "Calderon", + "otherTitle": "Mrs" + }, + "hearingNeedsBooked": null, + "type": "FAMILY_DRUG_ALCOHOL_COURT", + "translatedNoticeOfHearing": null, + "hearingMinutes": null, + "hearingHours": null, + "typeDetails": null, + "hearingNeedsDetails": null, + "presence": null, + "additionalNotes": null, + "others": [], + "preAttendanceDetails": "1 hour before the hearing", + "previousHearingVenue": { + "previousVenue": "Aldershot Justice Centre, Civic Centre, The Court House, Aldershot, GU11 1NY", + "usePreviousVenue": "Yes", + "newVenueCustomAddress": {}, + "newVenue": null + }, + "othersNotified": "", + "endDateDerived": "Yes", + "cancellationReason": null, + "translationRequirements": "NO", + "legalAdvisorLabel": "", + "hearingJudgeLabel": "Mrs Calderon", + "needTranslation": "NO", + "caseManagementOrderId": null, + "housekeepReason": "Listed in error", + "vacatedDate": null, + "hearingDays": 5, + "noticeOfHearing": null, + "attendanceDetails": "add", + "noticeOfHearingVacated": null, + "typeReason": null, + "attendance": [ + "VIDEO" + ], + "startDate": "2024-02-18T08:00:00", + "status": "ADJOURNED" + } + } + ], + "c2DocumentBundle": [], + "policeDisclosureList": [ + { + "id": "63be58fc-e172-440c-a12b-c3577e1dbfe3", + "value": { + "markAsConfidential": "No", + "document": { + "upload_timestamp": "2024-08-28T18:15:00.043284148", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Supplement doc in word format.docx", + "document_url": "${TEST_DOCUMENT_URL}" }, + "uploaderType": "HMCTS", + "uploaderCaseRoles": [] + } + } + ], + "caseSummaryFinalHearingDate": "2024-03-12", + "caseSummaryHighCourtCase": "No", + "caseSummaryFirstRespondentLastName": "One", + "respondents1": [ + { + "id": "6c709151-7f8c-45ef-a43a-1975c44468a8", + "value": { + "legalRepresentation": "Yes", + "legalCounsellors": [], + "solicitor": { + "lastName": "respondentSol", + "firstName": "Solicitor", + "telephoneNumber": { + "telephoneNumber": "01534756978" + }, + "colleaguesToBeNotified": [], + "organisation": { + "OrganisationID": "D25VR7V", + "OrganisationName": "Private solicitors" + }, + "email": "asfsd@mailinator.com", + "unregisteredOrganisation": {}, + "regionalOfficeAddress": {} + }, + "representedBy": [], + "party": { + "litigationIssues": "NO", + "lastName": "One", + "firstName": "Respondent", + "address": {}, + "telephoneNumber": { + "telephoneNumber": "099999999" + }, + "gender": "Male", + "dateOfBirth": "1998-05-04", + "contactDetailsHidden": "No", + "addressKnow": "No", + "relationshipToChild": "Mother", + "partyId": "e1ac35ac-c5c9-4988-a9c5-7152142d85ce", + "addressNotKnowReason": "Person deceased" + } + } + }, + { + "id": "b9d5d7a4-7963-437f-b53c-a76a79e8149f", + "value": { + "legalRepresentation": "Yes", + "legalCounsellors": [], + "solicitor": { + "lastName": "two", + "firstName": "respondent", + "telephoneNumber": { + "telephoneNumber": "9780898908908" + }, + "colleaguesToBeNotified": [], + "organisation": { + "OrganisationID": "4ZYL0HK", + "OrganisationName": "FPLSolicitorOrg" + }, + "email": "respondent2@emal.com", + "unregisteredOrganisation": {}, + "regionalOfficeAddress": {} + }, + "representedBy": [], + "party": { + "lastName": "two", + "firstName": "respodent", + "litigationIssues": "YES", + "telephoneNumber": { + "telephoneNumber": "01534756978" + }, + "address": { + "AddressLine3": "40 Livingstone Road", + "AddressLine2": "Dashwood Court", + "AddressLine1": "5", + "Country": "United Kingdom", + "PostTown": "Hounslow", + "PostCode": "TW3 1XZ", + "County": "" + }, + "gender": "Female", + "dateOfBirth": "2000-04-03", + "contactDetailsHidden": "No", + "relationshipToChild": "Relation ship to the child", + "addressKnow": "Yes" + } + } + } + ], + "respStmtList": [ + { + "id": "016606bd-8cd2-47ac-a415-356d90d9dbfb", + "value": { + "markAsConfidential": "No", + "hasConfidentialAddress": "No", + "uploaderType": "SOLICITOR", + "document": { + "upload_timestamp": "2024-08-28T18:08:33.204941478", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "C2 application for the sealing.docx", + "document_url": "${TEST_DOCUMENT_URL}" }, + "needTranslation": "NO", + "documentAcknowledge": [ + "ACK_RELATED_TO_CASE" + ], + "uploaderCaseRoles": [ + "SOLICITORB" + ] + } + } + ], + "caseSummaryNumberOfChildren": 2, + "standardDirectionOrder": { + "dateOfUpload": "2024-08-27", + "translationRequirements": "NO", + "uploader": "CTSC Team Leader", + "orderStatus": "SEALED", + "judgeAndLegalAdvisor": {}, + "needTranslation": "NO", + "orderDoc": { + "upload_timestamp": "2024-08-27T16:46:57.670217301", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Gauardian report.pdf", + "document_url": "${TEST_DOCUMENT_URL}" }, + "lastUploadedOrder": { + "upload_timestamp": "2024-08-27T16:44:46.158190617", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Gauardian report.docx", + "document_url": "${TEST_DOCUMENT_URL}" } + }, + "caseSummaryAllocatedJudgeEmail": "Susan.Calderon.JP@ejudiciary.net", + "caseSummaryFirstRespondentLegalRep": null, + "SearchCriteria": { + "SearchParties": [ + { + "id": "39102bfc-d999-400b-9b3b-dacd6413d22a", + "value": { + "DateOfBirth": "1998-05-04", + "Name": "Respondent One" + } + }, + { + "id": "9b663ad9-1190-479d-b447-9a20ad9f790b", + "value": { + "DateOfBirth": "2000-04-03", + "AddressLine1": "5", + "PostCode": "TW3 1XZ", + "Name": "respodent two" + } + }, + { + "id": "23150152-e81a-41b4-8eea-66097ffc0cf5", + "value": { + "DateOfBirth": "2020-02-12", + "Name": "Child One" + } + }, + { + "id": "5f64ff72-67e2-4209-9668-b8ee630c8372", + "value": { + "DateOfBirth": "2008-04-03", + "AddressLine1": "Flat 31", + "PostCode": "TW3 1EW", + "Name": "Child 2 Second" + } + }, + { + "id": "d00aa4d4-a036-4d3f-b8e4-8e727446248e", + "value": { + "DateOfBirth": "2000-05-05", + "AddressLine1": "38", + "PostCode": "TW3 1XZ", + "Name": "other person2" + } + }, + { + "id": "6f3d0e00-3ba0-4d47-9a2f-e141024b2071", + "value": { + "DateOfBirth": "2001-05-05", + "Name": "Other person3" + } + }, + { + "id": "644183fd-29b3-433c-a532-507414f82a4e", + "value": { + "DateOfBirth": "1980-05-04", + "Name": "ohter person1" + } + } + ] + }, + "caseSummaryHasNextHearing": "Yes", + "children1": [ + { + "id": "a2ef436b-c22e-4206-96b6-17e039f5cf46", + "value": { + "legalCounsellors": [], + "party": { + "lastName": "One", + "fathersName": "Father", + "gender": "Boy", + "socialWorkerTelephoneNumber": { + "telephoneNumber": "44444444444" + }, + "careAndContactPlan": "Care order", + "detailsHidden": "Yes", + "additionalNeedsDetails": "Details", + "socialWorkerName": "Solicitor", + "dateOfBirth": "2020-02-12", + "fathersResponsibility": "Don't know", + "livingSituationDetails": "Details of the living situation", + "litigationIssues": "NO", + "firstName": "Child", + "detailsHiddenReason": "Details", + "addressChangeDate": "2023-05-03", + "additionalNeeds": "Yes", + "mothersName": "Mother", + "livingSituation": "Other", + "partyId": "9d83482a-0715-480c-bd88-2683d05ede3b", + "keyDates": "key dates key date1\nkey date2" + } + } + }, + { + "id": "de9076cd-1cac-41d3-871f-9b6f68185953", + "value": { + "legalCounsellors": [], + "party": { + "lastName": "Second", + "firstName": "Child 2", + "address": { + "AddressLine3": "34 Prince Regent Road", + "AddressLine2": "Croxby House", + "AddressLine1": "Flat 31", + "Country": "United Kingdom", + "PostTown": "Hounslow", + "PostCode": "TW3 1EW", + "County": "" + }, + "gender": "They identify in another way", + "careAndContactPlan": "", + "addressChangeDate": "2024-05-04", + "additionalNeeds": "Yes", + "mothersName": "Mother", + "dateOfBirth": "2008-04-03", + "genderIdentification": "Baby", + "livingSituation": "Living with other family or friends" + } + } + } + ], + "expertReportList": [ + { + "id": "463c8a65-a39d-47cb-a561-2c34afcded0e", + "value": { + "markAsConfidential": "No", + "document": { + "upload_timestamp": "2024-08-28T18:15:00.043284148", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "Supplement doc in word format.docx", + "document_url": "${TEST_DOCUMENT_URL}" }, + "uploaderType": "HMCTS", + "uploaderCaseRoles": [] + } + } + ], + "caseSummaryNextHearingJudge": "Mrs Calderon", + "caseSummaryHasPreviousHearing": "Yes", + "caseSummaryPreviousHearingCMO": null, + "lettersOfInstructionList": [ + { + "id": "41f40654-5192-4967-bfe3-5d1a8b94f55e", + "value": { + "markAsConfidential": "No", + "document": { + "upload_timestamp": "2024-08-28T18:15:00.043284148", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}", + "document_filename": "C2 application for the sealing.docx", + "document_url": "${TEST_DOCUMENT_URL}" }, + "uploaderType": "HMCTS", + "uploaderCaseRoles": [] + } + } + ] + } +} diff --git a/playwright-e2e/caseData/caseCaffcassAPISearchAllFieldData2.json b/playwright-e2e/caseData/caseCaffcassAPISearchAllFieldData2.json new file mode 100644 index 00000000000..98094bd6893 --- /dev/null +++ b/playwright-e2e/caseData/caseCaffcassAPISearchAllFieldData2.json @@ -0,0 +1,677 @@ + +{ + "state": "PREPARE_FOR_HEARING", + "caseData": { + "familyManCaseNumber": "Famil1234", + "dateSubmitted": "2024-09-04", + "applicationType": "C110A", + "ordersSought": [ + "CARE_ORDER" + ], + "dateOfCourtIssue": null, + "citizenIsApplicant": false, + "applicantLA": "HN", + "respondentLA": null, + "applicants": [ + { + "id": "7e821664-7f7f-4d4c-938d-e3de4b9f8877", + "name": "London Borough Hillingdon", + "email": "FamilyPublicLaw+hn@gmail.com", + "phone": "111111111111", + "address": { + "addressLine1": "Flat 1, Hillingdon Apartments", + "addressLine2": "Hillingdon Central Square 1", + "addressLine3": null, + "postTown": "London", + "county": null, + "postcode": "CR0 2GE", + "country": null + }, + "colleagues": [ + { + "role": "SOLICITOR", + "title": null, + "email": "solicitor@email.com", + "phone": null, + "fullName": "Solicitor", + "mainContact": false, + "notificationRecipient": true + }, + { + "role": "SOCIAL_WORKER", + "title": null, + "email": "social@email.com", + "phone": "1111111111", + "fullName": "social", + "mainContact": true, + "notificationRecipient": true + }, + { + "role": "OTHER", + "title": "Team leader", + "email": "collegue@email.com", + "phone": null, + "fullName": "Collegue", + "mainContact": false, + "notificationRecipient": true + } + ], + "designated": true + } + ], + "respondents": [ + { + "firstName": "Respondent", + "lastName": "One", + "gender": "MALE", + "genderIdentification": null, + "addressKnown": false, + "addressUnknownReason": "No fixed abode", + "address": { + "addressLine1": null, + "addressLine2": null, + "addressLine3": null, + "postTown": null, + "county": null, + "postcode": null, + "country": null + }, + "dateOfBirth": "1998-04-04", + "telephoneNumber": "678675986", + "litigationIssues": "NO", + "litigationIssuesDetails": null, + "contactDetailsHidden": false, + "contactDetailsHiddenReason": null, + "relationshipToChild": "Aunty", + "solicitor": { + "email": "asfsd@mailinator.com", + "firstName": "Solicitor", + "lastName": "Respon1", + "organisationId": "D25VR7V", + "organisationName": "Private solicitors" + } + }, + { + "firstName": "Respondent", + "lastName": "two", + "gender": "FEMALE", + "genderIdentification": null, + "addressKnown": true, + "addressUnknownReason": null, + "address": { + "addressLine1": "20", + "addressLine2": "Dashwood Court", + "addressLine3": "40 Livingstone Road", + "postTown": "Hounslow", + "county": "", + "postcode": "TW3 1XZ", + "country": "United Kingdom" + }, + "dateOfBirth": "1998-03-03", + "telephoneNumber": "01534756978", + "litigationIssues": "NO", + "litigationIssuesDetails": null, + "contactDetailsHidden": false, + "contactDetailsHiddenReason": null, + "relationshipToChild": "Mother", + "solicitor": null + }, + { + "firstName": "Respondent", + "lastName": "Three", + "gender": "OTHER", + "genderIdentification": "Dad", + "addressKnown": true, + "addressUnknownReason": null, + "address": { + "addressLine1": "26", + "addressLine2": "Dashwood Court", + "addressLine3": "40 Livingstone Road", + "postTown": "Hounslow", + "county": "yrteueetyey", + "postcode": "TW3 1XZ", + "country": "United Kingdom" + }, + "dateOfBirth": "2000-05-05", + "telephoneNumber": "01534756978", + "litigationIssues": "NO", + "litigationIssuesDetails": null, + "contactDetailsHidden": false, + "contactDetailsHiddenReason": null, + "relationshipToChild": "Daddy", + "solicitor": null + } + ], + "children": [ + { + "firstName": "child", + "lastName": "one", + "dateOfBirth": "2000-05-02", + "gender": "MALE", + "genderIdentification": null, + "livingSituation": "Other", + "livingSituationDetails": "Other details", + "address": null, + "careAndContactPlan": "Brief summary of care and contact plan (Optional)", + "detailsHidden": true, + "socialWorkerName": "social worker", + "socialWorkerTelephoneNumber": "03453464574", + "additionalNeeds": false, + "additionalNeedsDetails": null, + "litigationIssues": "YES", + "litigationIssuesDetails": "yes", + "solicitor": { + "email": "fr_applicant_sol@sharklasers.com", + "firstName": "child", + "lastName": "respresntative", + "organisationId": "4ZYL0HK", + "organisationName": "FPLSolicitorOrg" + }, + "fathersResponsibility": "Yes" + }, + { + "firstName": "Child", + "lastName": "Two", + "dateOfBirth": "2015-04-03", + "gender": "FEMALE", + "genderIdentification": null, + "livingSituation": "Living with other family or friends", + "livingSituationDetails": null, + "address": null, + "careAndContactPlan": null, + "detailsHidden": true, + "socialWorkerName": "Social worker", + "socialWorkerTelephoneNumber": "0877787345345", + "additionalNeeds": true, + "additionalNeedsDetails": "test", + "litigationIssues": "NO", + "litigationIssuesDetails": null, + "solicitor": { + "email": "fr_applicant_sol@sharklasers.com", + "firstName": "child", + "lastName": "respresntative", + "organisationId": "4ZYL0HK", + "organisationName": "FPLSolicitorOrg" + }, + "fathersResponsibility": "Yes" + }, + { + "firstName": "Child", + "lastName": "Three", + "dateOfBirth": "2024-05-05", + "gender": "OTHER", + "genderIdentification": "Not Yet Know", + "livingSituation": "Voluntarily in section 20 care order", + "livingSituationDetails": null, + "address": { + "addressLine1": "26 Cranston Close", + "addressLine2": null, + "addressLine3": null, + "postTown": "Hounslow", + "county": null, + "postcode": "TW3 3DQ", + "country": "United Kingdom" + }, + "careAndContactPlan": "Brief Sumaary", + "detailsHidden": false, + "socialWorkerName": "soc", + "socialWorkerTelephoneNumber": null, + "additionalNeeds": false, + "additionalNeedsDetails": null, + "litigationIssues": "DONT_KNOW", + "litigationIssuesDetails": null, + "solicitor": { + "email": "fr_applicant_sol@sharklasers.com", + "firstName": "child", + "lastName": "respresntative", + "organisationId": "4ZYL0HK", + "organisationName": "FPLSolicitorOrg" + }, + "fathersResponsibility": "Don't know" + } + ], + "others": [ + { + "name": "Full Name", + "dateOfBirth": "1980-05-03", + "gender": "OTHER", + "genderIdentification": "11111111", + "birthPlace": "london", + "addressKnown": false, + "addressUnknownReason": "Person deceased", + "address": { + "addressLine1": null, + "addressLine2": null, + "addressLine3": null, + "postTown": null, + "county": null, + "postcode": null, + "country": null + }, + "telephone": "657567567875", + "litigationIssues": "YES", + "litigationIssuesDetails": null, + "detailsHidden": false, + "detailsHiddenReason": null + }, + { + "name": "other person2", + "dateOfBirth": "1980-05-04", + "gender": "FEMALE", + "genderIdentification": null, + "birthPlace": "Spain", + "addressKnown": true, + "addressUnknownReason": null, + "address": { + "addressLine1": "13", + "addressLine2": "Dashwood Court", + "addressLine3": "40 Livingstone Road", + "postTown": "Hounslow", + "county": "", + "postcode": "TW3 1XZ", + "country": "United Kingdom" + }, + "telephone": "01534756978", + "litigationIssues": "YES", + "litigationIssuesDetails": "tes", + "detailsHidden": false, + "detailsHiddenReason": null + } + ], + "hearingDetails": [ + { + "id": "7ceab4f6-f383-466b-ba58-33a34e7e4f90", + "type": "FACT_FINDING", + "typeDetails": null, + "venue": "98", + "status": null, + "startDate": "2024-12-19T15:00:00", + "endDate": "2024-12-24T15:00:00", + "attendance": [ + "IN_PERSON" + ], + "cancellationReason": null, + "preAttendanceDetails": "1 hour before the hearing", + "attendanceDetails": "fdsg" + }, + { + "id": "18ade35c-a036-4051-b7f8-4588987899b4", + "type": "JUDGMENT_AFTER_HEARING", + "typeDetails": null, + "venue": "98", + "status": null, + "startDate": "2024-12-19T10:00:00", + "endDate": "2024-12-23T10:00:00", + "attendance": [ + "IN_PERSON" + ], + "cancellationReason": null, + "preAttendanceDetails": "1 hour before the hearing", + "attendanceDetails": "Add Details" + }, + { + "id": "608b283c-146a-4b36-b71b-73128d64e5dd", + "type": "INTERIM_CARE_ORDER", + "typeDetails": null, + "venue": "98", + "status": null, + "startDate": "2024-12-19T10:00:00", + "endDate": "2024-12-24T10:00:00", + "attendance": [ + "IN_PERSON" + ], + "cancellationReason": null, + "preAttendanceDetails": "1 hour before the hearing", + "attendanceDetails": "add details" + }, + { + "id": "ae046c1d-712f-45f8-abff-ff706f4e2133", + "type": "ISSUE_RESOLUTION", + "typeDetails": null, + "venue": "97", + "status": null, + "startDate": "2024-11-19T10:00:00", + "endDate": "2024-11-19T16:04:00", + "attendance": [ + "IN_PERSON" + ], + "cancellationReason": null, + "preAttendanceDetails": "1 hour before the hearing", + "attendanceDetails": "dsa" + }, + { + "id": "0cf4fe7c-f22f-4ea1-b114-b64a5fd7158e", + "type": "CASE_MANAGEMENT", + "typeDetails": null, + "venue": "98", + "status": null, + "startDate": "2024-11-12T10:00:00", + "endDate": "2024-11-12T15:03:00", + "attendance": [ + "VIDEO", + "PHONE", + "IN_PERSON" + ], + "cancellationReason": null, + "preAttendanceDetails": "1 hour before the hearing", + "attendanceDetails": "dfg" + }, + { + "id": "ac413a69-992e-4e09-9f1e-6306cd674c9e", + "type": "EMERGENCY_PROTECTION_ORDER", + "typeDetails": null, + "venue": "98", + "status": null, + "startDate": "2023-11-05T10:00:00", + "endDate": "2023-11-05T10:00:00", + "attendance": [ + "VIDEO" + ], + "cancellationReason": null, + "preAttendanceDetails": "1 hour before the hearing", + "attendanceDetails": "add" + }, + { + "id": "c71f247b-80c9-432d-9449-9346e6bf4a87", + "type": "ACCELERATED_DISCHARGE_OF_CARE", + "typeDetails": null, + "venue": "98", + "status": null, + "startDate": "2023-02-19T10:00:00", + "endDate": "2025-04-04T10:00:00", + "attendance": [ + "IN_PERSON" + ], + "cancellationReason": null, + "preAttendanceDetails": "1 hour before the hearing", + "attendanceDetails": null + }, + { + "id": "6bcf81bf-c290-4e2c-8b7d-1295033543cb", + "type": "PLACEMENT_HEARING", + "typeDetails": null, + "venue": "98", + "status": null, + "startDate": "2025-01-19T10:00:00", + "endDate": "2025-01-20T10:00:00", + "attendance": [ + "IN_PERSON" + ], + "cancellationReason": null, + "preAttendanceDetails": "2 hour before the hearing", + "attendanceDetails": "sdff" + } + ], + "internationalElement": { + "possibleCarer": false, + "possibleCarerReason": null, + "significantEvents": true, + "significantEventsReason": "give", + "issues": true, + "issuesReason": "give", + "proceedings": false, + "proceedingsReason": null, + "internationalAuthorityInvolvement": false, + "internationalAuthorityInvolvementDetails": null + }, + "previousProceedings": [ + { + "proceedingStatus": "Ongoing", + "caseNumber": "456456456456", + "started": "12/9/2022", + "ended": null, + "ordersMade": "No", + "judge": "Judge Damien", + "children": "child one", + "guardian": null, + "sameGuardianNeeded": false, + "sameGuardianDetails": "not available" + }, + { + "proceedingStatus": "Previous", + "caseNumber": "5675675675", + "started": "2/4/2021", + "ended": "5/7/2022", + "ordersMade": "protection order", + "judge": "judge Claire", + "children": "child two", + "guardian": "guardina", + "sameGuardianNeeded": true, + "sameGuardianDetails": null + } + ], + "risks": { + "neglectOccurrences": [ + + ], + "sexualAbuseOccurrences": [ + "Past harm" + ], + "physicalHarmOccurrences": [ + + ], + "emotionalHarmOccurrences": [ + "Future risk of harm", + "Past harm" + ] + }, + "factorsParenting": { + "alcoholDrugAbuse": true, + "alcoholDrugAbuseReason": "give details", + "domesticViolence": false, + "domesticViolenceReason": null, + "anythingElse": true, + "anythingElseReason": null + }, + "caseManagementLocation": { + "region": "4", + "baseLocation": "102476" + }, + "caseDocuments": [ + { + "removed": false, + "documentCategory": "orders", + "documentId": "62ee4e5e-f208-44c9-b17c-ea2394eb65d4", + "document_filename": "Gauardian report.pdf" + }, + { + "removed": false, + "documentCategory": "orders", + "documentId": "61f6139c-c8b0-459e-a15b-24639851327e", + "document_filename": "c38a_discharge_education_supervision_order.pdf" + }, + { + "removed": false, + "documentCategory": "originalApplications", + "documentId": "c3574343-ea1c-4fdc-8658-900ea4a5f542", + "document_filename": "cafcass_API_DFPL-5494__02.pdf" + }, + { + "removed": false, + "documentCategory": "c1AndOtherApplications", + "documentId": "a8e86f31-e97b-4293-9755-a5a112d2d16d", + "document_filename": "C1 application.pdf" + }, + { + "removed": false, + "documentCategory": "hearingNotices", + "documentId": "a6e46a83-1b7b-4a4a-ae15-be6c680cf085", + "document_filename": "Notice_of_hearing_04September.pdf" + }, + { + "removed": false, + "documentCategory": "hearingNotices", + "documentId": "25218d1f-64fe-4b8d-97e9-ef2e0aa4a324", + "document_filename": "Notice_of_hearing_04September.pdf" + }, + { + "removed": false, + "documentCategory": "hearingNotices", + "documentId": "d680865a-2cf9-42c2-b737-5c3285606ddc", + "document_filename": "Notice_of_hearing_04September.pdf" + }, + { + "removed": false, + "documentCategory": "hearingNotices", + "documentId": "3557c510-524b-42e3-b11b-18dc92501f23", + "document_filename": "Notice_of_hearing_04September.pdf" + }, + { + "removed": false, + "documentCategory": "hearingNotices", + "documentId": "31932a6d-c824-44c0-9de9-5b0a8166081f", + "document_filename": "Notice_of_hearing_04September.pdf" + }, + { + "removed": false, + "documentCategory": "hearingNotices", + "documentId": "52b00817-3697-43cd-8351-38d9a289578d", + "document_filename": "Notice_of_hearing_04September.pdf" + }, + { + "removed": false, + "documentCategory": "bundle", + "documentId": "81b5fa56-47bc-490a-a762-f2e593e42461", + "document_filename": "C20.pdf" + }, + { + "removed": false, + "documentCategory": "caseSummary", + "documentId": "d972e6ac-7285-4e21-a2c6-f7a99d155007", + "document_filename": "Supplement doc in word format.docx" + }, + { + "removed": false, + "documentCategory": "positionStatements", + "documentId": "e9eadde6-ec41-47a6-849c-95f2da42bc1b", + "document_filename": "dummy.pdf" + }, + { + "removed": false, + "documentCategory": "threshold", + "documentId": "0eeee234-3571-4a01-8a1c-ac28d68583da", + "document_filename": "Supplement doc in word format.docx" + }, + { + "removed": false, + "documentCategory": "threshold", + "documentId": "00b25220-35eb-4173-959a-a2edf1ff5618", + "document_filename": "C20.pdf" + }, + { + "removed": false, + "documentCategory": "skeletonArguments", + "documentId": "67d525dd-6f5f-4f9e-afd3-0624c16c604f", + "document_filename": "Urgent Direction order.docx" + }, + { + "removed": false, + "documentCategory": "documentsFiledOnIssue", + "documentId": "a309eeba-a778-4b33-b5c7-b2c179e1f87b", + "document_filename": "C2 application for the sealing.pdf" + }, + { + "removed": false, + "documentCategory": "documentsFiledOnIssue", + "documentId": "ffee1178-8a56-486c-bb7c-cfc88b37d650", + "document_filename": "Secure accomadation.docx" + }, + { + "removed": false, + "documentCategory": "documentsFiledOnIssue", + "documentId": "b19cc784-e629-481a-8499-e29559870bcd", + "document_filename": "D10.pdf" + }, + { + "removed": false, + "documentCategory": "documentsFiledOnIssue", + "documentId": "c1ab52d9-6806-4f2e-9775-718c60042941", + "document_filename": "D10.pdf" + }, + { + "removed": false, + "documentCategory": "documentsFiledOnIssue", + "documentId": "3afa3bd6-4ff6-4447-afe1-65f73c09ef5c", + "document_filename": "C17a.docx" + }, + { + "removed": false, + "documentCategory": "documentsFiledOnIssue", + "documentId": "eb92429f-1a26-478e-a1cd-9a94dab491d5", + "document_filename": "Birth Certificate.docx" + }, + { + "removed": false, + "documentCategory": "documentsFiledOnIssue", + "documentId": "bc00b76f-79eb-4dfb-946b-47ad39ca27f7", + "document_filename": "dummy.pdf" + }, + { + "removed": false, + "documentCategory": "carePlan", + "documentId": "f93d664a-2125-4f35-80d8-b407cb8784c5", + "document_filename": "Cafcass c2 support docuement.docx" + }, + { + "removed": false, + "documentCategory": "parent_respondentsStatements", + "documentId": "a9df5490-59ae-442c-a37c-03943f40010d", + "document_filename": "C20.pdf" + }, + { + "removed": false, + "documentCategory": "guardiansEvidence", + "documentId": "c0f8ab93-d4c5-4526-94b0-afa354d1b35c", + "document_filename": "Discharge education supervision order.docx" + }, + { + "removed": false, + "documentCategory": "expertReports", + "documentId": "788ba0dd-a4c0-4621-9bc6-d8c10594d24f", + "document_filename": "C23_0109_out_of_hours_save.pdf" + }, + { + "removed": false, + "documentCategory": "drugAndAlcoholReports", + "documentId": "493f8110-c3ac-4d0c-99bd-9b3a42fd7570", + "document_filename": "Supplement doc in word format.docx" + }, + { + "removed": false, + "documentCategory": "lettersOfInstructionReferrals", + "documentId": "e8a3ba58-092d-401a-a8a3-8d27b9424b0c", + "document_filename": "C13A.docx" + }, + { + "removed": false, + "documentCategory": "policeDisclosure", + "documentId": "d077df08-32ea-4add-bbf2-72dfd64357bd", + "document_filename": "C2 application for the sealing.pdf" + }, + { + "removed": false, + "documentCategory": "policeDisclosure", + "documentId": "7f1f2662-ef4c-4bf1-ba2e-b95b4e14729b", + "document_filename": "dummy.pdf" + }, + { + "removed": false, + "documentCategory": "medicalRecords", + "documentId": "845ec5fe-e922-409d-98a2-81a6ca0a2ac8", + "document_filename": "C2 application for the sealing.pdf" + }, + { + "removed": false, + "documentCategory": "courtCorrespondence", + "documentId": "a19b8116-1e1c-4e12-a904-1bac78366373", + "document_filename": "Supplement doc in word format.docx" + }, + { + "removed": false, + "documentCategory": "previousProceedings", + "documentId": "9244a9b5-11c7-461a-888f-3738d71993d3", + "document_filename": "C1 supporting document.docx" + } + ] + } +} diff --git a/playwright-e2e/caseData/caseInReturnState.json b/playwright-e2e/caseData/caseInReturnState.json new file mode 100644 index 00000000000..e1389d3c854 --- /dev/null +++ b/playwright-e2e/caseData/caseInReturnState.json @@ -0,0 +1,260 @@ + +{ + "state": "RETURNED", + "caseData": { + "caseName": "e2e test new case", + "orders": { + "orderType": [ + "CARE_ORDER" + ] + }, + "grounds": { + "thresholdReason": [ + "noCare" + ], + "thresholdDetails": "mock threshold details" + }, + "hearing": { + "reason": "test reason", + "timeFrame": "Same day" + }, + "children1": [ + { + "id": "5c578fcc-7e41-45b0-82f7-46c38a769cb3", + "value": { + "party": { + "gender": "Boy", + "lastName": "Jones", + "firstName": "Timothy", + "dateOfBirth": "2015-08-01" + } + } + }, + { + "id": "cc792469-47f1-4cc8-8979-6b36bcf6b0a6", + "value": { + "party": { + "gender": "Boy", + "lastName": "Black", + "firstName": "John", + "dateOfBirth": "2016-09-02" + } + } + }, + { + "id": "d56b23ee-ca80-42cc-bf9f-2e65cec00985", + "value": { + "party": { + "gender": "Boy", + "lastName": "Black", + "firstName": "William", + "dateOfBirth": "2017-10-01" + } + } + }, + { + "id": "2135caa3-62d1-4692-99a9-3524397c6b05", + "value": { + "party": { + "gender": "Girl", + "lastName": "Black", + "firstName": "Sarah", + "dateOfBirth": "2010-05-02" + } + } + } + ], + "solicitor": { + "dx": "160010 Kingsway 7", + "name": "John Smith", + "email": "solicitor@email.com", + "mobile": "07000000000", + "reference": "reference", + "telephone": "00000000000" + }, + "applicants": [ + { + "id": "583fe873-f0f2-4b38-bc8b-825c07ebdd41", + "value": { + "party": { + "email": { + "email": "swansea@test.com" + }, + "address": { + "County": "United Kingdom", + "PostCode": "CR0 2GE", + "PostTown": "London", + "AddressLine1": "Flat 12, Pinnacle Apartments", + "AddressLine2": "Saffron Central Square 11" + }, + "partyId": "a77f0692-60c8-44e1-aae7-f067851bbc89", + "jobTitle": "Legal adviser", + "partyType": "ORGANISATION", + "pbaNumber": "PBA0082848", + "clientCode": "8888", + "mobileNumber": { + "telephoneNumber": "07000000000" + }, + "telephoneNumber": { + "telephoneNumber": "00000000000", + "contactDirection": "Jonathon Walker" + }, + "organisationName": "Swansea City Council", + "customerReference": "Example reference" + }, + "leadApplicantIndicator": "Yes" + } + } + ], + "sendToCtsc": "Yes", + "localAuthorities": [ + { + "id": "048aa1fd-e3a5-4651-99b0-53776bd03773", + "value": { + "name": "Swansea City Council", + "email": "test@test.com", + "phone": "02027725772", + "address": { + "County": "Swansea", + "Country": "United Kingdom", + "PostCode": "CR0 2GE", + "PostTown": "Swansea", + "AddressLine1": "Flat 1, Swansea Apartments", + "AddressLine2": "Swansea Central Square 11", + "AddressLine3": "40 Fleet street" + }, + "pbaNumber": "PBA1234567", + "colleagues": [ + { + "id": "1a44928d-6dcd-4943-86c6-5dca0f6ba376", + "value": { + "role": "SOLICITOR", + "email": "test@test.com", + "fullName": "Solicitor 1", + "notificationRecipient": "Yes" + } + } + ], + "designated": "Yes" + } + } + ], + "respondents1": [ + { + "id": "6e3b4492-3a0d-4eb8-8a18-a4a42a7b158a", + "value": { + "party": { + "gender": "Male", + "address": { + "County": "", + "Country": "United Kingdom", + "PostCode": "RG4 7AA", + "PostTown": "Reading", + "AddressLine1": "Flat 2", + "AddressLine2": "Caversham House 15-17", + "AddressLine3": "Church Road" + }, + "lastName": "Bloggs", + "firstName": "Joe", + "dateOfBirth": "1980-01-01", + "placeOfBirth": "London", + "telephoneNumber": { + "telephoneNumber": "00000 000000" + }, + "relationshipToChild": "Uncle" + } + } + } + ], + "dateSubmitted": "TO BE FILLED WITH VALID DATA", + "submittedForm": { + "document_url": "${TEST_DOCUMENT_URL}", + "document_filename": "c110a.pdf", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}" + }, + "submissionConsent": [ + "agree" + ], + "allocationProposal": { + "proposal": "District judge" + }, + "caseLocalAuthority": "SA", + "familyManCaseNumber": "SW24C51337", + "localAuthorityPolicy": { + "Organisation": { + "OrganisationID": "ORGSA", + "OrganisationName": "Swansea City Council" + }, + "OrgPolicyCaseAssignedRole": "[LASOLICITOR]" + }, + "caseLocalAuthorityName": "Swansea City Council", + "displayAmountToPay": "Yes", + "temporaryApplicationDocuments": [ + { + "id": "681458fa-9c6b-4c25-a275-77b23a3375aa", + "value": { + "document": { + "document_url": "${TEST_DOCUMENT_URL}", + "document_filename": "solicitor-role-tech.docx", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}" + }, + "uploadedBy": null, + "documentName": null, + "documentType": "THRESHOLD", + "includedInSWET": null, + "dateTimeUploaded": null + } + } + ], + "allocatedJudge": { + "judgeTitle": "HER_HONOUR_JUDGE", + "judgeLastName": "Moley", + "judgeEmailAddress": "moley@example.com" + }, + "additionalApplicationsBundle": [ + { + "id": "4ae96392-b71d-40a6-9e59-a66d3fd279a5", + "value": { + "author": "HMCTS", + "pbaPayment": { + "usePbaPayment": "No" + }, + "c2DocumentBundle": { + "id": "2c3d7329-8206-44a1-b1b4-7502ab253b0f", + "type": "WITHOUT_NOTICE", + "author": "HMCTS", + "document": { + "document_url": "${TEST_DOCUMENT_URL}", + "document_filename": "Test.txt", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}" + }, + "uploadedDateTime": "25 March 2021, 3:16pm", + "supplementsBundle": [], + "supportingEvidenceLA": [], + "supportingEvidenceNC": [], + "supportingEvidenceBundle": [], + "c2AdditionalOrdersRequested": [ + "CHANGE_SURNAME_OR_REMOVE_JURISDICTION" + ] + }, + "uploadedDateTime": "25 March 2021, 3:16pm", + "otherApplicationsBundle": { + "id": "85bb3a49-e178-4a3a-ad73-165005d8c4bf", + "author": "HMCTS", + "document": { + "document_url": "${TEST_DOCUMENT_URL}", + "document_filename": "Test.txt", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}" + }, + "applicationType": "C100_CHILD_ARRANGEMENTS", + "uploadedDateTime": "25 March 2021, 3:16pm", + "supplementsBundle": [], + "supportingEvidenceLA": [], + "supportingEvidenceNC": [], + "supportingEvidenceBundle": [] + } + } + } + ] + } +} diff --git a/playwright-e2e/caseData/mandatorySubmittedStateAPI.json b/playwright-e2e/caseData/mandatorySubmittedStateAPI.json new file mode 100644 index 00000000000..062c76c9808 --- /dev/null +++ b/playwright-e2e/caseData/mandatorySubmittedStateAPI.json @@ -0,0 +1,266 @@ +{ + "state": "PREPARE_FOR_HEARING", + "caseData": { + "caseName": "e2e test case", + "orders": { + "orderType": [ + "CARE_ORDER" + ] + }, + "grounds": { + "thresholdReason": [ + "noCare" + ], + "thresholdDetails": "mock threshold details" + }, + "hearing": { + "reason": "test reason", + "timeFrame": "Same day" + }, + "children1": [ + { + "id": "5c578fcc-7e41-45b0-82f7-46c38a769cb3", + "value": { + "party": { + "gender": "Boy", + "lastName": "Jones", + "firstName": "Timothy", + "dateOfBirth": "2015-08-01" + } + } + }, + { + "id": "cc792469-47f1-4cc8-8979-6b36bcf6b0a6", + "value": { + "party": { + "gender": "Boy", + "lastName": "Black", + "firstName": "John", + "dateOfBirth": "2016-09-02" + } + } + }, + { + "id": "d56b23ee-ca80-42cc-bf9f-2e65cec00985", + "value": { + "party": { + "gender": "Boy", + "lastName": "Black", + "firstName": "William", + "dateOfBirth": "2017-10-01" + } + } + }, + { + "id": "2135caa3-62d1-4692-99a9-3524397c6b05", + "value": { + "party": { + "gender": "Girl", + "lastName": "Black", + "firstName": "Sarah", + "dateOfBirth": "2010-05-02" + } + } + } + ], + "solicitor": { + "dx": "160010 Kingsway 7", + "name": "John Smith", + "email": "solicitor@email.com", + "mobile": "07000000000", + "reference": "reference", + "telephone": "00000000000" + }, + "localAuthorities": [ + { + "id": "105409c7-9ec5-4c3a-9182-ad05d5290243", + "value": { + "name": "Swansea City Council", + "email": "swansea@test.com", + "pbaNumber": "PBA0082848", + "phone": "02027725772", + "address": { + "County": "United Kingdom", + "PostCode": "CR0 2GE", + "PostTown": "London", + "AddressLine1": "Flat 12, Pinnacle Apartments", + "AddressLine2": "Saffron Central Square 11" + }, + "colleagues": [ + { + "id": "1a44928d-6dcd-4943-86c6-5dca0f6ba376", + "value": { + "role": "SOLICITOR", + "email": "alex@test.com", + "fullName": "Alex Brown", + "notificationRecipient": "Yes", + "mainContact": "Yes" + } + } + ], + "designated": "Yes" + } + } + ], + "applicants": [ + { + "id": "583fe873-f0f2-4b38-bc8b-825c07ebdd41", + "value": { + "party": { + "email": { + "email": "swansea@test.com" + }, + "address": { + "County": "United Kingdom", + "PostCode": "CR0 2GE", + "PostTown": "London", + "AddressLine1": "Flat 12, Pinnacle Apartments", + "AddressLine2": "Saffron Central Square 11" + }, + "partyId": "a77f0692-60c8-44e1-aae7-f067851bbc89", + "jobTitle": "Legal adviser", + "partyType": "ORGANISATION", + "pbaNumber": "PBA0082848", + "clientCode": "8888", + "mobileNumber": { + "telephoneNumber": "07000000000" + }, + "telephoneNumber": { + "telephoneNumber": "00000000000", + "contactDirection": "Jonathon Walker" + }, + "organisationName": "Swansea City Council", + "customerReference": "Example reference" + }, + "leadApplicantIndicator": "Yes" + } + } + ], + "sendToCtsc": "Yes", + "respondents1": [ + { + "id": "6e3b4492-3a0d-4eb8-8a18-a4a42a7b158a", + "value": { + "party": { + "gender": "Male", + "address": { + "County": "", + "Country": "United Kingdom", + "PostCode": "RG4 7AA", + "PostTown": "Reading", + "AddressLine1": "Flat 2", + "AddressLine2": "Caversham House 15-17", + "AddressLine3": "Church Road" + }, + "lastName": "Bloggs", + "firstName": "Joe", + "dateOfBirth": "1980-01-01", + "placeOfBirth": "London", + "telephoneNumber": { + "telephoneNumber": "00000 000000" + }, + "relationshipToChild": "Father" + }, + "legalRepresentation": "No" + } + }, + { + "id": "2bfdecbf-26fa-429a-bcf3-0b5cba21a588", + "value": { + "party": { + "gender": "Male", + "address": { + "County": "", + "Country": "United Kingdom", + "PostCode": "SE16 6BA", + "PostTown": "London", + "AddressLine1": "Flat 20", + "AddressLine2": "Heron House 8" + }, + "lastName": "Bloggs", + "firstName": "Emma", + "dateOfBirth": "1990-02-03", + "placeOfBirth": "London", + "telephoneNumber": { + "telephoneNumber": "07000 654321" + }, + "relationshipToChild": "Mother" + }, + "legalRepresentation": "No" + } + } + ], + "others": { + "firstOther": { + "DOB": "1980-03-31", + "name": "Noah King", + "gender": "Male", + "address": { + "County": "", + "Country": "United Kingdom", + "PostCode": "SE16 6BA", + "PostTown": "London", + "AddressLine1": "Flat 20", + "AddressLine2": "Heron House 8", + "AddressLine3": "" + }, + "telephone": "07000 654321", + "birthPlace": "London", + "detailsHidden": "No", + "representedBy": [], + "childInformation": null, + "litigationIssues": "NO", + "detailsHiddenReason": null, + "genderIdentification": null, + "litigationIssuesDetails": "" + }, + "additionalOthers": [] + }, + "dateSubmitted": "TO BE FILLED WITH VALID DATA", + "submittedForm": { + "document_url": "${TEST_DOCUMENT_URL}", + "document_filename": "c110a.pdf", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}" + }, + "submissionConsent": [ + "agree" + ], + "allocationProposal": { + "proposal": "District judge" + }, + "caseLocalAuthority": "SA", + "localAuthorityPolicy": { + "Organisation": { + "OrganisationID": "ORGSA", + "OrganisationName": "Swansea City Council" + }, + "OrgPolicyCaseAssignedRole": "[LASOLICITOR]" + }, + "caseLocalAuthorityName": "Swansea City Council", + "displayAmountToPay": "Yes", + "dateAndTimeSubmitted": "TO BE FILLED WITH VALID DATA", + "submissionConsentLabel": "I, kurt@swansea.gov.uk (local-authority), believe that the facts stated in this application are true.", + "applicationDocuments": [ + { + "id": "681458fa-9c6b-4c25-a275-77b23a3375aa", + "value": { + "document": { + "document_url": "${TEST_DOCUMENT_URL}", + "document_filename": "solicitor-role-tech.docx", + "document_binary_url": "${TEST_DOCUMENT_BINARY_URL}" + }, + "uploadedBy": null, + "documentName": null, + "documentType": "THRESHOLD", + "includedInSWET": null, + "dateTimeUploaded": null + } + } + ], + "allocatedJudge": { + "judgeTitle": "HER_HONOUR_JUDGE", + "judgeLastName": "Moley", + "judgeEmailAddress": "moley@example.com" + } + } +} diff --git a/playwright-e2e/pages/manage-documents.ts b/playwright-e2e/pages/manage-documents.ts index 9144510ab02..fd2a831ec7c 100644 --- a/playwright-e2e/pages/manage-documents.ts +++ b/playwright-e2e/pages/manage-documents.ts @@ -67,12 +67,12 @@ export class ManageDocuments extends BasePage { await this.checkYourAnsAndSubmit(); } - async removeDocuments() { - await this.page.getByLabel('Remove documents').check(); + async removeDocuments(docType:string,docName:string) { + await this.removeDocumentsTest.click(); await this.clickContinue(); - await this.page.getByLabel('Document type').selectOption('Court correspondence'); + await this.page.getByLabel('Document type').selectOption(docType); await this.clickContinue(); - await this.page.getByLabel('Uploaded Document').selectOption('mock.pdf'); + await this.page.getByLabel('Uploaded Document').selectOption(docName); await this.page.getByLabel('There is a mistake on the').check(); await this.clickContinue(); await this.checkYourAnsAndSubmit(); diff --git a/playwright-e2e/pages/sign-in.ts b/playwright-e2e/pages/sign-in.ts index e2aef00c7c1..df3cc240915 100644 --- a/playwright-e2e/pages/sign-in.ts +++ b/playwright-e2e/pages/sign-in.ts @@ -27,7 +27,11 @@ export class SignInPage extends BasePage{ } async visit(url:string = this.url) { - await this.page.goto(url); + await expect(async () => { + await this.page.goto(url); + await expect(this.page.getByText('Sign in or create an account')).toBeVisible({timeout:1*10*1000}); + }).toPass(); + } async navigateTOCaseDetails(caseNumber:string) { await this.page.goto(`${urlConfig.frontEndBaseURL}/case-details/${caseNumber}`); diff --git a/playwright-e2e/settings/urls.ts b/playwright-e2e/settings/urls.ts index 88680c3268d..a0d33ee3307 100644 --- a/playwright-e2e/settings/urls.ts +++ b/playwright-e2e/settings/urls.ts @@ -11,5 +11,4 @@ export const urlConfig: UrlConfig = { serviceUrl: process.env.CASE_SERVICE_URL || `http://fpl-case-service-${env}.service.core-compute-${env}.internal`, frontEndBaseURL: process.env.FE_BASE_URL || `https://manage-case.${env}.platform.hmcts.net`, // You can add other URLs as needed - }; diff --git a/playwright-e2e/settings/user-credentials.ts b/playwright-e2e/settings/user-credentials.ts index bf89a83efda..cb8fbe0916e 100644 --- a/playwright-e2e/settings/user-credentials.ts +++ b/playwright-e2e/settings/user-credentials.ts @@ -7,8 +7,8 @@ const judgePwd = process.env.E2E_TEST_JUDGE_PASSWORD || ''; export const newSwanseaLocalAuthorityUserOne = { - email: 'local-authority-swansea-0001@maildrop.cc', - password: e2ePw, + email: 'sam@hillingdon.gov.uk', + password: defaultPwd, }; export const systemUpdateUser = { @@ -16,6 +16,11 @@ export const systemUpdateUser = { password: process.env.SYSTEM_UPDATE_USER_PASSWORD || defaultPwd, }; +export const cafcassAPIUser={ + email: 'chakshing.lo@justice.gov.uk', + password: defaultPwd, +}; + export const CTSCUser = { email: process.env.CTSC_USERNAME || 'fpl-ctsc-admin@justice.gov.uk', password: defaultPwd, @@ -85,3 +90,7 @@ export const WiltshireOrgCAAUser = { email: 'admin@wiltshire.gov.uk', password: defaultPwd, }; +export const authToken={ + cafcassAuth:process.env.CAFCASSAUTH || '', + systemAuth:process.env.SYSUSERAUTH || '' +} diff --git a/playwright-e2e/tests/cafcass-search-case-API.spec.ts b/playwright-e2e/tests/cafcass-search-case-API.spec.ts new file mode 100644 index 00000000000..5c67e101e53 --- /dev/null +++ b/playwright-e2e/tests/cafcass-search-case-API.spec.ts @@ -0,0 +1,64 @@ +import {expect, test} from "../fixtures/fixtures"; +import {cafcassAPICaseSearch, createCase, updateCase} from "../utils/api-helper"; +import {authToken, newSwanseaLocalAuthorityUserOne} from "../settings/user-credentials"; +import Ajv from 'ajv'; +import cafcassAPISearchSchema from '../caseData/cafcassAPICaseSchema.json' assert {type: 'json'}; +import submitCase from '../caseData/mandatorySubmissionFields.json' assert {type: 'json'}; +import cafcassCase from '../caseData/caseCaffcassAPISearchAllFieldData.json' assert {type: 'json'}; + +test.describe('CafcassAPI search cases', () => { + let startTime = new Date().toISOString(); + let intervalEndTime: string; + let intervalStartTime: string; + const ajv = new Ajv(); + let caseNumber: string + let caseNumber2: string; + + test.beforeAll(async () => { + let currentTime = new Date(); + intervalStartTime = new Date(currentTime.setMinutes(currentTime.getMinutes() - 2)).toISOString(); + + // set up the test data + // return case, case with minimum data , case with all data + caseNumber = await createCase('e2e case', newSwanseaLocalAuthorityUserOne); + await updateCase('submit case' + startTime.slice(0, 10), caseNumber, submitCase); + caseNumber2 = await createCase('e2e case', newSwanseaLocalAuthorityUserOne); + await updateCase('submit case' + startTime.slice(0, 10), caseNumber2, cafcassCase); + let interval = currentTime.setMinutes(currentTime.getMinutes() + 5); + intervalEndTime = new Date(interval).toISOString(); + + + }); + test(' Cafcass user search cases for given time frame', + async ({request, page}) => { + await page.waitForTimeout(2000) // wait for the test data to be set up + let response = await cafcassAPICaseSearch(request, authToken.cafcassAuth, intervalStartTime, intervalEndTime); + + //assert the response + expect(response.status()).toBe(200); + let body = await response.json(); + + const validJson = ajv.validate(cafcassAPISearchSchema, body); + if (!validJson) console.log(ajv.errors) + expect(validJson).toBe(true); + expect(await body.total).toBeGreaterThanOrEqual(2); + expect(JSON.stringify(await body.cases)).toContain(caseNumber); + expect(JSON.stringify(await body.cases)).toContain(caseNumber2); + }) + test('search case by user without cafcass role', async ({request}) => { + + let response = await cafcassAPICaseSearch(request, authToken.systemAuth, intervalStartTime, intervalEndTime); + //assertion + expect(response.status()).toBe(403); + expect(response.statusText()).toBe('Forbidden'); + }) + test('Search cases with invalid parameter', async ({request}) => { + let endTime = new Date().setMinutes(new Date().getMinutes() + 30); + let response = await cafcassAPICaseSearch(request, authToken.cafcassAuth, intervalStartTime, endTime.toString()); + //assertion + expect(response.status()).toEqual(400); + expect(response.statusText()).toEqual('Bad Request'); + + }) + +}) diff --git a/playwright-e2e/tests/cafcass-search-doc-API.spec.ts b/playwright-e2e/tests/cafcass-search-doc-API.spec.ts new file mode 100644 index 00000000000..2766940eb69 --- /dev/null +++ b/playwright-e2e/tests/cafcass-search-doc-API.spec.ts @@ -0,0 +1,49 @@ +import {expect, test} from "../fixtures/fixtures"; +import { + cafcassAPICaseSearch, cafcassAPIDocSearch, + createCase, + updateCase +} from "../utils/api-helper"; +import { + authToken, + newSwanseaLocalAuthorityUserOne, +} from "../settings/user-credentials"; +import submitCase from '../caseData/mandatorySubmissionFields.json' assert {type: 'json'}; + +test.describe('@new CafcassAPI Document Search', () => { + let startTime = new Date().toISOString(); + let currentTime = new Date(); + let caseNumber:string; + let StartTime = new Date(currentTime.setMinutes(currentTime.getMinutes() - 2)).toISOString(); + let docId:string; + test.beforeEach(async ({request}) => { + caseNumber = await createCase('e2e case', newSwanseaLocalAuthorityUserOne); + await updateCase('Cafcass search document' + startTime.slice(0, 10), caseNumber, submitCase); + let interval = currentTime.setMinutes(currentTime.getMinutes() + 11); + let endTime = new Date(interval).toISOString(); + let caseResponse =await cafcassAPICaseSearch(request,authToken.cafcassAuth,StartTime,endTime) + let body = await caseResponse.json(); + docId= await body.cases[0].caseData.caseDocuments[0].documentId; + + }); + test(' Cafcass user search a valid case document', + async ({request}) => { + + let response = await cafcassAPIDocSearch(request, authToken.cafcassAuth,docId); + + //assert the response + expect(response.status()).toBe(200); + expect(response.headers()["content-type"]).toContain('application/octet-stream'); + + }) + + test('user without cafcass role access the end point', async ({request}) => { + let endTime = new Date().setMinutes(new Date().getMinutes() + 30); + let response = await cafcassAPIDocSearch(request, authToken.systemAuth,docId); + //assertion + expect(response.status()).toEqual(403); + expect(response.statusText()).toEqual('Forbidden'); + + }) + +}) diff --git a/playwright-e2e/tests/cafcass-update-guardian-API.spec.ts b/playwright-e2e/tests/cafcass-update-guardian-API.spec.ts new file mode 100644 index 00000000000..81b368d47d8 --- /dev/null +++ b/playwright-e2e/tests/cafcass-update-guardian-API.spec.ts @@ -0,0 +1,111 @@ +import {expect, test} from "../fixtures/fixtures"; +import {cafcassUpdateGuardianDetails, createCase, updateCase} from "../utils/api-helper"; +import { + authToken, + CTSCTeamLeadUser, + newSwanseaLocalAuthorityUserOne +} from "../settings/user-credentials"; +import submitCase from '../caseData/mandatorySubmissionFields.json' assert {type: 'json'}; + +test.describe('CafcassAPI Update Gaurdian Details', () => { + let startTime = new Date().toISOString(); + let caseNumber:string; + test.beforeEach(async () => { + caseNumber = await createCase('e2e case', newSwanseaLocalAuthorityUserOne); + }); + + test(' Cafcass user update the gaurdian details', async ({request, page, signInPage}) => { + await updateCase('Cafcass update gaurdian details' + startTime.slice(0, 10), caseNumber, submitCase); + let data = [ + { + "guardianName": "June Thacher", + "telephoneNumber": "01234567890", + "email": "june.thacher@mail.com", + "children": [ + "Joe Bloggs" + ] + }, + { + "guardianName": "Tom mac", + "telephoneNumber": "01234567890", + "email": "tom.mac@mail.com", + "children": [ + "Joey" + ] + } + ] + let response = await cafcassUpdateGuardianDetails(request, authToken.cafcassAuth, caseNumber, data); + + //assert the response + expect(response.status()).toBe(200); + await signInPage.visit(); + await page.pause(); + await signInPage.login(CTSCTeamLeadUser.email, CTSCTeamLeadUser.password); + await signInPage.navigateTOCaseDetails(caseNumber); + await signInPage.tabNavigation('People in the case'); + + // assert the updated gaurdian details on the screen + await expect(page.getByText('Guardian 1', {exact: true})).toBeVisible(); + await expect(page.locator('#case-viewer-field-read--guardians')).toContainText('June Thacher'); + await expect(page.locator('#case-viewer-field-read--guardians')).toContainText('june.thacher@mail.com'); + await expect(page.getByText('Guardian 1', {exact: true})).toBeVisible(); + await expect(page.locator('#case-viewer-field-read--guardians')).toContainText('Tom mac'); + await expect(page.locator('#case-viewer-field-read--guardians')).toContainText('tom.mac@mail.com'); + + }) + test('Cafcass update gaurdian details for cases in not valid state', async ({request}) => { + + let data = [ + { + "guardianName": "June Thacher", + "telephoneNumber": "01234567890", + "email": "june.thacher@mail.com", + "children": [ + "Joe Bloggs" + ] + }, + { + "guardianName": "Tom mac", + "telephoneNumber": "01234567890", + "email": "tom.mac@mail.com", + "children": [ + "Joey" + ] + } + ] + + let response = await cafcassUpdateGuardianDetails(request, authToken.cafcassAuth, caseNumber, data); + //assertion + expect(response.status()).toBe(404); + expect(response.statusText()).toBe('Not Found'); + }) + test('Cafcass Update guardian details by user without cafcass role', async ({request}) => { + + await updateCase('Not authorised user update guardian details' + startTime.slice(0, 10), caseNumber, submitCase); + let data = [ + { + "guardianName": "June Thacher", + "telephoneNumber": "01234567890", + "email": "june.thacher@mail.com", + "children": [ + "Joe Bloggs" + ] + }, + { + "guardianName": "Tom mac", + "telephoneNumber": "01234567890", + "email": "tom.mac@mail.com", + "children": [ + "Joey" + ] + } + ] + + let response = await cafcassUpdateGuardianDetails(request, authToken.systemAuth, caseNumber, data); + //assertion + expect(response.status()).toEqual(403); + expect(response.statusText()).toEqual('Forbidden'); + + }) + +}) diff --git a/playwright-e2e/tests/cafcass-upload-guardianreport-API.spec.ts b/playwright-e2e/tests/cafcass-upload-guardianreport-API.spec.ts new file mode 100644 index 00000000000..d6b7a34e6f1 --- /dev/null +++ b/playwright-e2e/tests/cafcass-upload-guardianreport-API.spec.ts @@ -0,0 +1,92 @@ +import {expect, test} from "../fixtures/fixtures"; +import {cafcassAPIUploadDoc, createCase, updateCase} from "../utils/api-helper"; +import {authToken, CTSCTeamLeadUser, newSwanseaLocalAuthorityUserOne} from "../settings/user-credentials"; +import submitCase from '../caseData/mandatorySubmissionFields.json' assert {type: 'json'}; +import {CreateCaseName} from "../utils/create-case-name"; + +test.describe('Cafcass upload guardian report ', () => { + let startTime = new Date().toISOString(); + let caseNumber: string + test.beforeEach(async () => { + caseNumber = await createCase('e2e case', newSwanseaLocalAuthorityUserOne); + }); + + + test('Cafcass upload gaurdian report', async ({request, page, signInPage, caseFileView, manageDocuments}) => { + await updateCase('cafcass upload guardian report' + startTime.slice(0, 10), caseNumber, submitCase); + let docName = CreateCaseName.generateFileName('GUARDIAN_REPORT'); + let response = await cafcassAPIUploadDoc(request, authToken.cafcassAuth, caseNumber, 'GUARDIAN_REPORT'); + //assert the response + expect(response.status()).toBe(200); + expect(await response.text()).toContain('GUARDIAN_REPORT uploaded successfully'); + //test to see the doc in MC application + await signInPage.visit(); + await signInPage.login(CTSCTeamLeadUser.email, CTSCTeamLeadUser.password); + await signInPage.navigateTOCaseDetails(caseNumber); + await caseFileView.goToCFVTab(); + await caseFileView.openFolder('Guardian\'s reports'); + + await expect(page.getByRole('tree')).toContainText(`${docName}`); + + await signInPage.gotoNextStep('Manage documents'); + await manageDocuments.removeDocuments('Guardian report', docName); + await caseFileView.goToCFVTab(); + await caseFileView.openFolder('Guardian\'s reports'); + + await expect(page.getByRole('tree')).not.toContainText(`${docName}`); + + + }) + test('Cafcass upload position statement', async ({request, page, signInPage, caseFileView, manageDocuments}) => { + await updateCase('Cafcass upload position statement' + startTime.slice(0, 10), caseNumber, submitCase); + let docName = CreateCaseName.generateFileName('POSITION_STATEMENT'); + let response = await cafcassAPIUploadDoc(request, authToken.cafcassAuth, caseNumber, 'POSITION_STATEMENT'); + expect(response.status()).toBe(200); + expect(await response.text()).toContain('POSITION_STATEMENT uploaded successfully'); + + //test to see the doc in MC application + await signInPage.visit(); + await signInPage.login(CTSCTeamLeadUser.email, CTSCTeamLeadUser.password); + await signInPage.navigateTOCaseDetails(caseNumber); + await caseFileView.goToCFVTab(); + await caseFileView.openFolder('Position Statements'); + + await expect(page.getByRole('tree')).toContainText(`${docName}`); + + await signInPage.gotoNextStep('Manage documents'); + await manageDocuments.removeDocuments('Position Statements', docName); + await caseFileView.goToCFVTab(); + await caseFileView.openFolder('Position Statements'); + + await expect(page.getByRole('tree')).not.toContainText(`${docName}`); + + }) + test(' Upload report for cases in invalid state', async ({request}) => { + let response = await cafcassAPIUploadDoc(request, authToken.cafcassAuth, caseNumber, 'POSITION_STATEMENT'); + + //assertion + expect(response.status()).toBe(404); + expect(response.statusText()).toBe('Not Found'); + }) + test('Upload reports by user without cafcass role', async ({request}) => { + + await updateCase('Upload reports by user without cafcass role' + startTime.slice(0, 10), caseNumber, submitCase); + let response = await cafcassAPIUploadDoc(request, authToken.systemAuth, caseNumber, 'POSITION_STATEMENT'); + + //assertion + expect(response.status()).toEqual(403); + expect(response.statusText()).toEqual('Forbidden'); + + }) + test('Upload wrong file type', async ({request}) => { + + await updateCase('Upload wrong file type' + startTime.slice(0, 10), caseNumber, submitCase); + let response = await cafcassAPIUploadDoc(request, authToken.cafcassAuth, caseNumber, 'POSITION_STATEMENT', 'txt'); + + //assertion + expect(response.status()).toEqual(400); + expect(response.statusText()).toEqual('Bad Request'); + + }) + +}) diff --git a/playwright-e2e/tests/global.setup.ts b/playwright-e2e/tests/global.setup.ts new file mode 100644 index 00000000000..7d623a6b5fc --- /dev/null +++ b/playwright-e2e/tests/global.setup.ts @@ -0,0 +1,12 @@ +import { test as setup } from '@playwright/test'; +import {getAccessToken} from "../utils/api-helper"; +import {cafcassAPIUser, systemUpdateUser} from "../settings/user-credentials"; + +setup('access Token', async ({ }) => { + const cafcassAuthToken = await getAccessToken(cafcassAPIUser); + process.env.CAFCASSAUTH = cafcassAuthToken; + const systemUserAuthToken = await getAccessToken(systemUpdateUser); + process.env.SYSUSERAUTH = systemUserAuthToken; +}); + + diff --git a/playwright-e2e/tests/manage-documents.spec.ts b/playwright-e2e/tests/manage-documents.spec.ts index 72b37b90675..a389c185421 100644 --- a/playwright-e2e/tests/manage-documents.spec.ts +++ b/playwright-e2e/tests/manage-documents.spec.ts @@ -172,7 +172,7 @@ test.describe('Manage Documents', () => { // remove documents await manageDocuments.gotoNextStep('Manage documents'); - await manageDocuments.removeDocuments(); + await manageDocuments.removeDocuments('Court correspondence','mock.pdf'); //go to CFV and assert Court Correspondence not visble await caseFileView.goToCFVTab(); diff --git a/playwright-e2e/utils/api-helper.ts b/playwright-e2e/utils/api-helper.ts index 40a27706a23..e00d59a7ce1 100644 --- a/playwright-e2e/utils/api-helper.ts +++ b/playwright-e2e/utils/api-helper.ts @@ -1,103 +1,109 @@ -import {systemUpdateUser,privateSolicitorOrgUser} from '../settings/user-credentials'; +import {systemUpdateUser} from '../settings/user-credentials'; import {urlConfig} from '../settings/urls'; - - import axios from 'axios'; import * as qs from 'qs'; import lodash from 'lodash'; +import {APIRequestContext} from '@playwright/test'; +import config from "../settings/test-docs/config"; +import * as fs from "fs"; - export const getAccessToken = async ({user}: { user: any }) => { - try { - let axiosConfig = { - headers: { - 'Content-Type': 'application/x-www-form-urlencoded', - }, - }; - let url = `${urlConfig.idamUrl}/loginUser?username=${user.email}&password=${user.password}`; - return await axios.post(url, qs.stringify(axiosConfig)); - } catch (error) { - if (axios.isAxiosError(error)) { - console.log(error.status) - console.error(error.response); - } else { - console.error(error); +export const getAccessToken = async (user: { email: string, password: string }) => { + let response; + try { + let axiosConfig = { + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + }; + let url = `${urlConfig.idamUrl}/loginUser?username=${user.email}&password=${user.password}`; + return axios.post(url, qs.stringify(axiosConfig)).then(res => { + return res.data.access_token; } + ); + } catch (error) { + if (axios.isAxiosError(error)) { + console.log(error.status) + console.error(error.response); + return error.response + } else { + console.error(error); } } +} - export const createCase = async (caseName = 'e2e UI Test', user: { email: string, password: string }) => { - - let res: any; - const url = `${urlConfig.serviceUrl}/testing-support/case/create`; - const data = { - caseName: caseName, - }; - try { - res = await apiRequest(url, user, 'post', data); - } catch (error) { - console.log(error); - } +export const createCase = async (caseName = 'e2e UI Test', user: { email: string, password: string }) => { - return res.id; + let res: any; + const url = `${urlConfig.serviceUrl}/testing-support/case/create`; + const data = { + caseName: caseName, + }; + try { + res = await apiRequest(url, user, 'post', data); + } catch (error) { + console.log(error); } - export const updateCase = async (caseName = 'e2e Test', caseID: string, caseDataJson: any) => { - //This can be moved to before test hook to as same document URL will be used for all test data - //replace the documents placeholder with document url - let docDetail = await apiRequest(urlConfig.serviceUrl + '/testing-support/test-document', systemUpdateUser); - let docParameter = { - TEST_DOCUMENT_URL: docDetail.document_url, - TEST_DOCUMENT_BINARY_URL: docDetail.document_binary_url + return res.id; +} + +export const updateCase = async (caseName = 'e2e Test', caseID: string, caseDataJson: any) => { + //This can be moved to before test hook to as same document URL will be used for all test data + //replace the documents placeholder with document url + let docDetail = await apiRequest(urlConfig.serviceUrl + '/testing-support/test-document', systemUpdateUser); + let docParameter = { + TEST_DOCUMENT_URL: docDetail.document_url, + TEST_DOCUMENT_BINARY_URL: docDetail.document_binary_url - }; - const dateTime = new Date().toISOString(); - caseDataJson.caseData.caseName = caseName; - - caseDataJson.caseData.dateSubmitted = dateTime.slice(0, 10); - - caseDataJson.caseData.dateAndTimeSubmitted = dateTime.slice(0, -1); - let data = lodash.template(JSON.stringify(caseDataJson))(docParameter); - let postURL = `${urlConfig.serviceUrl}/testing-support/case/populate/${caseID}`; - try { - await apiRequest(postURL, systemUpdateUser, 'post', data); - } catch (error) { - console.log(error); - } - } + }; + const dateTime = new Date().toISOString(); + caseDataJson.caseData.caseName = caseName; - export const apiRequest = async (postURL: string, authUser: any, method: string = 'get', data: any = {}) => { - const systemUserAuthToke = await getAccessToken({user: authUser}); - const requestConfig = { - method: method, - url: postURL, - data: data, - headers: { - 'Authorization': `Bearer ${systemUserAuthToke?.data.access_token}`, - 'Content-Type': 'application/json' - }, - }; - try { - return axios.request(requestConfig).then((res) => { - return res.data; - }); - } catch (error) { - if (axios.isAxiosError(error)) { - console.log(error.status); - console.log(error.request); - console.log(error.response); - } + caseDataJson.caseData.dateSubmitted = dateTime.slice(0, 10); + + caseDataJson.caseData.dateAndTimeSubmitted = dateTime.slice(0, -1); + let data = lodash.template(JSON.stringify(caseDataJson))(docParameter); + let postURL = `${urlConfig.serviceUrl}/testing-support/case/populate/${caseID}`; + try { + await apiRequest(postURL, systemUpdateUser, 'post', data); + } catch (error) { + console.log(error); + } +} +export const apiRequest = async (postURL: string, authUser: any, method: string = 'get', data: any = {}) => { + const systemUserAuthToke = await getAccessToken(authUser); + const requestConfig = { + method: method, + url: postURL, + data: data, + headers: { + 'Authorization': `Bearer ${systemUserAuthToke}`, + 'Content-Type': 'application/json' + }, + }; + try { + return axios.request(requestConfig).then((res) => { + return res.data; + }); + } catch (error) { + if (axios.isAxiosError(error)) { + console.log(error.status); + console.log(error.request); + console.log(error.response); } } -export const giveAccessToCase = async (caseID: string,user: {email: string ,password: string},role: string ) => { +} + +export const giveAccessToCase = async (caseID: string, user: { email: string, password: string }, role: string) => { let data = JSON.stringify({ 'email': user.email, 'password': user.password, 'role': role }); - let postURL : string = `${urlConfig.serviceUrl}/testing-support/case/${caseID}/access`; + let postURL: string = `${urlConfig.serviceUrl}/testing-support/case/${caseID}/access`; try { let res = await apiRequest(postURL, systemUpdateUser, 'post', data); } catch (error) { @@ -106,3 +112,79 @@ export const giveAccessToCase = async (caseID: string,user: {email: string ,pass } +export const cafcassAPICaseSearch = async (request: APIRequestContext, AuthToken: string, startTime: string, endTime: string) => { + + let response = await request.get(`${urlConfig.serviceUrl}/cases`, + { + headers: { + 'Authorization': `Bearer ${AuthToken}`, + 'Content-Type': 'application/json' + } + , params: { + 'startDate': `${startTime}`, + 'endDate': `${endTime}` + } + }) + return response; +} + +export const cafcassAPIDocSearch = async (request: APIRequestContext, AuthToken: string,docId:string) => { + let response = await request.get(`${urlConfig.serviceUrl}/cases/documents/${docId}/binary`, + { + headers: { + 'Authorization': `Bearer ${AuthToken}`, + + } + }) + return await response; +} +export const cafcassUpdateGuardianDetails = async (request: APIRequestContext, AuthToken: string, caseID: string, data: { + guardianName: string; + telephoneNumber: string; + email: string; + children: string[]; +}[] | undefined) => { + let url = `${urlConfig.serviceUrl}/cases/${caseID}/guardians` + let response = await request.post(url, + { + headers: { + 'Authorization': `Bearer ${AuthToken}`, + 'Content-Type': 'application/json', + }, + data: data, + + }) + return response; +} +export const cafcassAPICaseDocSearch = async (request: APIRequestContext, AuthToken: string, documentId: string) => { + let url = `${urlConfig.serviceUrl}/cases/documents/{documentId}/binary` + + let response = await request.get(`${urlConfig.serviceUrl}/cases`, + { + headers: { + 'Authorization': `Bearer ${AuthToken}`, + 'Content-Type': 'application/json' + } + }) + return response; +} +export const cafcassAPIUploadDoc = async (request: APIRequestContext,AuthToken:string, caseID:string,docType:string,fileType:string='pdf') => { + let url = `${urlConfig.serviceUrl}/cases/${caseID}/document`; + let docUpload = fs.readFileSync(config.testPdfFile); + + let response = await request.post(url, + { + headers: { + 'Authorization': `Bearer ${AuthToken}`, + }, + multipart: { + file: { + name: config.testPdfFile, + mimeType: `application/${fileType}`, + buffer: docUpload, + }, + typeOfDocument: docType + } + }); + return response; +} diff --git a/playwright-e2e/utils/create-case-name.ts b/playwright-e2e/utils/create-case-name.ts index 5faf83a1436..d67bdfdec6d 100644 --- a/playwright-e2e/utils/create-case-name.ts +++ b/playwright-e2e/utils/create-case-name.ts @@ -3,4 +3,15 @@ export class CreateCaseName { const date = new Date(); return date.toISOString(); } + static generateFileName(docType: string){ + let date = new Date(); + let year = date.getFullYear(); + let month = (date.getMonth() + 1).toString().padStart(2, "0"); + let day = date.getDate().toString().padStart(2, "0"); + let hour = date.getHours().toString().padStart(2, "0"); + let min = date.getMinutes().toString().padStart(2, "0"); + let fileName = docType + '-'+ day+month+year+ ' ' + hour + min + '.pdf'; + +return fileName + } } diff --git a/playwright.config.ts b/playwright.config.ts index a37e8b59c29..f10e36b3f76 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -25,7 +25,7 @@ export default defineConfig({ /*build fails when reaches 35 failed test - fail fast*/ maxFailures: process.env.CI ? 35 : 0, /* Opt out of parallel tests on CI. */ - workers: process.env.CI ? 5 : undefined, + workers: process.env.CI ? 3 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: [[process.env.CI ? 'html' : 'list'], ['html', { outputFolder: '../test-results/functionalTest' }]], @@ -39,29 +39,48 @@ export default defineConfig({ /* Configure projects for major browsers */ projects: [ + + { + name: 'usertoken', + testMatch: /global\.setup\.ts/, + }, { name: "chromium", use: { ...devices["Desktop Chrome"] }, + grepInvert:/.*API.spec.ts/, }, { name: "firefox", use: { ...devices["Desktop Firefox"] }, + grepInvert:/.*API.spec.ts/, }, { name: "webkit", use: { ...devices["Desktop Safari"] }, + grepInvert:/.*API.spec.ts/, }, { name: "preview", use: { ...devices["Desktop Chrome"] }, - retries: 3, - timeout: 3*60*1000, - expect: { timeout: 1*60*1000 }, + grepInvert:/.*API.spec.ts/, + retries: 1, + timeout: 4*60*1000, + expect: { timeout: 1*60*1000 }, + }, + { + name: "CafcassAPI", + use: { ...devices["Desktop Chrome"] }, + grep:/.*API.spec.ts/, + timeout: 3*60*1000, + expect: { timeout: 1*30*1000 }, + dependencies:['usertoken'], + }, + - /* Test against mobile viewports. */ + /* Test against mobile viewports. */ // { // name: "Mobile Chrome", // use: { ...devices["Pixel 5"] }, diff --git a/tsconfig.json b/tsconfig.json index adec0de7a33..8901d37cc99 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ /* Language and Environment */ - "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + "target": "es2021", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "jsx": "preserve", /* Specify what JSX code is generated. */ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ diff --git a/yarn.lock b/yarn.lock index 6dee2636b64..df8b2743756 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1224,6 +1224,15 @@ __metadata: languageName: node linkType: hard +"@cspotcode/source-map-support@npm:^0.8.0": + version: 0.8.1 + resolution: "@cspotcode/source-map-support@npm:0.8.1" + dependencies: + "@jridgewell/trace-mapping": 0.3.9 + checksum: 5718f267085ed8edb3e7ef210137241775e607ee18b77d95aa5bd7514f47f5019aa2d82d96b3bf342ef7aa890a346fa1044532ff7cc3009e7d24fce3ce6200fa + languageName: node + linkType: hard + "@cucumber/cucumber-expressions@npm:17": version: 17.1.0 resolution: "@cucumber/cucumber-expressions@npm:17.1.0" @@ -1480,7 +1489,7 @@ __metadata: languageName: node linkType: hard -"@jridgewell/resolve-uri@npm:^3.1.0": +"@jridgewell/resolve-uri@npm:^3.0.3, @jridgewell/resolve-uri@npm:^3.1.0": version: 3.1.2 resolution: "@jridgewell/resolve-uri@npm:3.1.2" checksum: 83b85f72c59d1c080b4cbec0fef84528963a1b5db34e4370fa4bd1e3ff64a0d80e0cee7369d11d73c704e0286fb2865b530acac7a871088fbe92b5edf1000870 @@ -1518,6 +1527,16 @@ __metadata: languageName: node linkType: hard +"@jridgewell/trace-mapping@npm:0.3.9": + version: 0.3.9 + resolution: "@jridgewell/trace-mapping@npm:0.3.9" + dependencies: + "@jridgewell/resolve-uri": ^3.0.3 + "@jridgewell/sourcemap-codec": ^1.4.10 + checksum: d89597752fd88d3f3480845691a05a44bd21faac18e2185b6f436c3b0fd0c5a859fbbd9aaa92050c4052caf325ad3e10e2e1d1b64327517471b7d51babc0ddef + languageName: node + linkType: hard + "@jridgewell/trace-mapping@npm:^0.3.24, @jridgewell/trace-mapping@npm:^0.3.25": version: 0.3.25 resolution: "@jridgewell/trace-mapping@npm:0.3.25" @@ -1620,14 +1639,14 @@ __metadata: languageName: node linkType: hard -"@playwright/test@npm:^1.43.1": - version: 1.44.1 - resolution: "@playwright/test@npm:1.44.1" +"@playwright/test@npm:^1.46.0": + version: 1.47.2 + resolution: "@playwright/test@npm:1.47.2" dependencies: - playwright: 1.44.1 + playwright: 1.47.2 bin: playwright: cli.js - checksum: 90507b77e388aa984deb92db56f7bb3b305c6be441e1d0087ca046989cfdda068bbc26d75bd29c20ad3dbb2434e69a8ff0d6b30003b88c9234cd3aa6a9f7deb9 + checksum: 4f149613c0fd4a40061425efdf5c7a257df09e1b6b797ad221597ddde52381edb69fce6645bf3b95a11eee74147a2025c1951041f29dbc717dab0cc46d9c3427 languageName: node linkType: hard @@ -2120,6 +2139,34 @@ __metadata: languageName: node linkType: hard +"@tsconfig/node10@npm:^1.0.7": + version: 1.0.11 + resolution: "@tsconfig/node10@npm:1.0.11" + checksum: 51fe47d55fe1b80ec35e6e5ed30a13665fd3a531945350aa74a14a1e82875fb60b350c2f2a5e72a64831b1b6bc02acb6760c30b3738b54954ec2dea82db7a267 + languageName: node + linkType: hard + +"@tsconfig/node12@npm:^1.0.7": + version: 1.0.11 + resolution: "@tsconfig/node12@npm:1.0.11" + checksum: 5ce29a41b13e7897a58b8e2df11269c5395999e588b9a467386f99d1d26f6c77d1af2719e407621412520ea30517d718d5192a32403b8dfcc163bf33e40a338a + languageName: node + linkType: hard + +"@tsconfig/node14@npm:^1.0.0": + version: 1.0.3 + resolution: "@tsconfig/node14@npm:1.0.3" + checksum: 19275fe80c4c8d0ad0abed6a96dbf00642e88b220b090418609c4376e1cef81bf16237bf170ad1b341452feddb8115d8dd2e5acdfdea1b27422071163dc9ba9d + languageName: node + linkType: hard + +"@tsconfig/node16@npm:^1.0.2": + version: 1.0.4 + resolution: "@tsconfig/node16@npm:1.0.4" + checksum: 202319785901f942a6e1e476b872d421baec20cf09f4b266a1854060efbf78cde16a4d256e8bc949d31e6cd9a90f1e8ef8fb06af96a65e98338a2b6b0de0a0ff + languageName: node + linkType: hard + "@types/http-cache-semantics@npm:^4.0.2": version: 4.0.4 resolution: "@types/http-cache-semantics@npm:4.0.4" @@ -2464,7 +2511,7 @@ __metadata: languageName: node linkType: hard -"acorn-walk@npm:^8.3.3": +"acorn-walk@npm:^8.1.1, acorn-walk@npm:^8.3.3": version: 8.3.4 resolution: "acorn-walk@npm:8.3.4" dependencies: @@ -2473,7 +2520,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:8.12.1, acorn@npm:^8.11.0, acorn@npm:^8.12.1": +"acorn@npm:8.12.1, acorn@npm:^8.11.0, acorn@npm:^8.12.1, acorn@npm:^8.4.1": version: 8.12.1 resolution: "acorn@npm:8.12.1" bin: @@ -2540,6 +2587,18 @@ __metadata: languageName: node linkType: hard +"ajv@npm:^8.17.1": + version: 8.17.1 + resolution: "ajv@npm:8.17.1" + dependencies: + fast-deep-equal: ^3.1.3 + fast-uri: ^3.0.1 + json-schema-traverse: ^1.0.0 + require-from-string: ^2.0.2 + checksum: 1797bf242cfffbaf3b870d13565bd1716b73f214bb7ada9a497063aada210200da36e3ed40237285f3255acc4feeae91b1fb183625331bad27da95973f7253d9 + languageName: node + linkType: hard + "ajv@npm:^8.6.3": version: 8.13.0 resolution: "ajv@npm:8.13.0" @@ -2715,6 +2774,13 @@ __metadata: languageName: node linkType: hard +"arg@npm:^4.1.0": + version: 4.1.3 + resolution: "arg@npm:4.1.3" + checksum: 544af8dd3f60546d3e4aff084d451b96961d2267d668670199692f8d054f0415d86fc5497d0e641e91546f0aa920e7c29e5250e99fc89f5552a34b5d93b77f43 + languageName: node + linkType: hard + "argparse@npm:^1.0.7": version: 1.0.10 resolution: "argparse@npm:1.0.10" @@ -4036,6 +4102,13 @@ __metadata: languageName: node linkType: hard +"create-require@npm:^1.1.0": + version: 1.1.1 + resolution: "create-require@npm:1.1.1" + checksum: a9a1503d4390d8b59ad86f4607de7870b39cad43d929813599a23714831e81c520bddf61bcdd1f8e30f05fd3a2b71ae8538e946eb2786dc65c2bbc520f692eff + languageName: node + linkType: hard + "cross-fetch@npm:4.0.0": version: 4.0.0 resolution: "cross-fetch@npm:4.0.0" @@ -4451,6 +4524,13 @@ __metadata: languageName: node linkType: hard +"diff@npm:^4.0.1": + version: 4.0.2 + resolution: "diff@npm:4.0.2" + checksum: f2c09b0ce4e6b301c221addd83bf3f454c0bc00caa3dd837cf6c127d6edf7223aa2bbe3b688feea110b7f262adbfc845b757c44c8a9f8c0c5b15d8fa9ce9d20d + languageName: node + linkType: hard + "diff@npm:^5.0.0, diff@npm:^5.2.0": version: 5.2.0 resolution: "diff@npm:5.2.0" @@ -4477,7 +4557,7 @@ __metadata: languageName: node linkType: hard -"dotenv@npm:^16.4.1": +"dotenv@npm:^16.4.5": version: 16.4.5 resolution: "dotenv@npm:16.4.5" checksum: 301a12c3d44fd49888b74eb9ccf9f07a1f5df43f489e7fcb89647a2edcd84c42d6bc349dc8df099cd18f07c35c7b04685c1a4f3e6a6a9e6b30f8d48c15b7f49c @@ -5064,6 +5144,13 @@ __metadata: languageName: node linkType: hard +"fast-uri@npm:^3.0.1": + version: 3.0.2 + resolution: "fast-uri@npm:3.0.2" + checksum: ca00aadc84e0ab93a8a1700c386bc7cbeb49f47d9801083c258444eed31221fdf864d68fb48ea8acd7c512bf046b53c09e3aafd6d4bdb9449ed21be29d8d6f75 + languageName: node + linkType: hard + "fast-xml-parser@npm:^4.0.12, fast-xml-parser@npm:^4.2.4": version: 4.3.6 resolution: "fast-xml-parser@npm:4.3.6" @@ -5352,15 +5439,16 @@ __metadata: "@babel/core": ^7.11.0 "@babel/eslint-parser": ^7.17.0 "@eslint/js": ^9.0.0 - "@playwright/test": ^1.43.1 + "@playwright/test": ^1.46.0 "@types/lodash": ^4.14.202 "@types/node": ^20.10.7 "@types/qs": ^6.9.11 + ajv: ^8.17.1 axios: ^1.6.7 codeceptjs: 3.6.7 dateformat: ^4.6.3 debug: 4.3.7 - dotenv: ^16.4.1 + dotenv: ^16.4.5 eslint: ^8.0.0 eslint-plugin-codeceptjs: ^1.3.0 glob: ^7.2.3 @@ -5377,6 +5465,7 @@ __metadata: node-gyp: ^9.4.0 playwright-core: ^1.43.1 qs: ^6.11.2 + ts-node: ^10.9.2 typescript: ^5.4.5 webdriverio: 8.36.1 peerDependencies: @@ -7188,6 +7277,13 @@ __metadata: languageName: node linkType: hard +"make-error@npm:^1.1.1": + version: 1.3.6 + resolution: "make-error@npm:1.3.6" + checksum: b86e5e0e25f7f777b77fabd8e2cbf15737972869d852a22b7e73c17623928fccb826d8e46b9951501d3f20e51ad74ba8c59ed584f610526a48f8ccf88aaec402 + languageName: node + linkType: hard + "make-fetch-happen@npm:^10.0.3": version: 10.2.1 resolution: "make-fetch-happen@npm:10.2.1" @@ -8734,7 +8830,16 @@ __metadata: languageName: node linkType: hard -"playwright-core@npm:1.44.1, playwright-core@npm:^1.43.1": +"playwright-core@npm:1.47.2": + version: 1.47.2 + resolution: "playwright-core@npm:1.47.2" + bin: + playwright-core: cli.js + checksum: c06109a08dd672a92eb048ce7c9a1451ed701e62ff78f0d67c67ee6b06c88f0dc5422c2a7bb26e5fca05840e2adba154a25ca988e56f76c233affe61f42453a3 + languageName: node + linkType: hard + +"playwright-core@npm:^1.43.1": version: 1.44.1 resolution: "playwright-core@npm:1.44.1" bin: @@ -8743,18 +8848,18 @@ __metadata: languageName: node linkType: hard -"playwright@npm:1.44.1": - version: 1.44.1 - resolution: "playwright@npm:1.44.1" +"playwright@npm:1.47.2": + version: 1.47.2 + resolution: "playwright@npm:1.47.2" dependencies: fsevents: 2.3.2 - playwright-core: 1.44.1 + playwright-core: 1.47.2 dependenciesMeta: fsevents: optional: true bin: playwright: cli.js - checksum: c2e8ff0a855e4a9e665ae5ffa0ff90423289546157be55e83f78916d17075c5910a7244773739c2a973da884a4ff0b3cf9b6e6b543de112e43b12169a9208e86 + checksum: 41ec99d62c9d7282a3d0dd2444892a379be2f4c61e9045a0b1cfc5897796747d220df5af11c6a7515c56c82df02a1025a46a5da7abc17485b4e981e133588261 languageName: node linkType: hard @@ -10427,6 +10532,44 @@ __metadata: languageName: node linkType: hard +"ts-node@npm:^10.9.2": + version: 10.9.2 + resolution: "ts-node@npm:10.9.2" + dependencies: + "@cspotcode/source-map-support": ^0.8.0 + "@tsconfig/node10": ^1.0.7 + "@tsconfig/node12": ^1.0.7 + "@tsconfig/node14": ^1.0.0 + "@tsconfig/node16": ^1.0.2 + acorn: ^8.4.1 + acorn-walk: ^8.1.1 + arg: ^4.1.0 + create-require: ^1.1.0 + diff: ^4.0.1 + make-error: ^1.1.1 + v8-compile-cache-lib: ^3.0.1 + yn: 3.1.1 + peerDependencies: + "@swc/core": ">=1.2.50" + "@swc/wasm": ">=1.2.50" + "@types/node": "*" + typescript: ">=2.7" + peerDependenciesMeta: + "@swc/core": + optional: true + "@swc/wasm": + optional: true + bin: + ts-node: dist/bin.js + ts-node-cwd: dist/bin-cwd.js + ts-node-esm: dist/bin-esm.js + ts-node-script: dist/bin-script.js + ts-node-transpile-only: dist/bin-transpile.js + ts-script: dist/bin-script-deprecated.js + checksum: fde256c9073969e234526e2cfead42591b9a2aec5222bac154b0de2fa9e4ceb30efcd717ee8bc785a56f3a119bdd5aa27b333d9dbec94ed254bd26f8944c67ac + languageName: node + linkType: hard + "tslib@npm:^1.9.0": version: 1.14.1 resolution: "tslib@npm:1.14.1" @@ -10740,6 +10883,13 @@ __metadata: languageName: node linkType: hard +"v8-compile-cache-lib@npm:^3.0.1": + version: 3.0.1 + resolution: "v8-compile-cache-lib@npm:3.0.1" + checksum: 78089ad549e21bcdbfca10c08850022b22024cdcc2da9b168bcf5a73a6ed7bf01a9cebb9eac28e03cd23a684d81e0502797e88f3ccd27a32aeab1cfc44c39da0 + languageName: node + linkType: hard + "validator@npm:^10.11.0": version: 10.11.0 resolution: "validator@npm:10.11.0" @@ -11256,6 +11406,13 @@ __metadata: languageName: node linkType: hard +"yn@npm:3.1.1": + version: 3.1.1 + resolution: "yn@npm:3.1.1" + checksum: 2c487b0e149e746ef48cda9f8bad10fc83693cd69d7f9dcd8be4214e985de33a29c9e24f3c0d6bcf2288427040a8947406ab27f7af67ee9456e6b84854f02dd6 + languageName: node + linkType: hard + "yocto-queue@npm:^0.1.0": version: 0.1.0 resolution: "yocto-queue@npm:0.1.0"