From 9a77ff5cc50395a4d0e2c54455e6f02197678df9 Mon Sep 17 00:00:00 2001 From: hmcts-version1-ignacio Date: Wed, 21 Aug 2024 15:27:08 +0100 Subject: [PATCH 1/2] CIV-14895 Publish WA variables --- .../CaseEvent/User/UserEvents-JO-nonprod.json | 1 + .../FeatureToggle-WAToggle-JO-nonprod.json | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 ccd-definition/CaseEventToFields/FeatureToggle-WAToggle-JO-nonprod.json diff --git a/ccd-definition/CaseEvent/User/UserEvents-JO-nonprod.json b/ccd-definition/CaseEvent/User/UserEvents-JO-nonprod.json index bf33d36bc8..a21f9e5363 100644 --- a/ccd-definition/CaseEvent/User/UserEvents-JO-nonprod.json +++ b/ccd-definition/CaseEvent/User/UserEvents-JO-nonprod.json @@ -34,6 +34,7 @@ "CallBackURLSubmittedEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/submitted", "RetriesTimeoutAboutToStartEvent": 0, "RetriesTimeoutURLAboutToSubmitEvent": 0, + "Publish": "Y", "EventEnablingCondition": "joIsLiveJudgmentExists = \"Yes\" AND CaseAccessCategory=\"SPEC_CLAIM\" AND activeJudgment.type = \"DEFAULT_JUDGMENT\"" }, { diff --git a/ccd-definition/CaseEventToFields/FeatureToggle-WAToggle-JO-nonprod.json b/ccd-definition/CaseEventToFields/FeatureToggle-WAToggle-JO-nonprod.json new file mode 100644 index 0000000000..ab160fb7ed --- /dev/null +++ b/ccd-definition/CaseEventToFields/FeatureToggle-WAToggle-JO-nonprod.json @@ -0,0 +1,14 @@ +[ + { + "CaseTypeID": "CIVIL", + "CaseEventID": "SET_ASIDE_JUDGMENT", + "CaseFieldID": "featureToggleWA", + "PageDisplayOrder": 1, + "PageFieldDisplayOrder": 1, + "DisplayContext": "READONLY", + "PageID": "WorkAllocation", + "PageShowCondition": "joSetAsideReason=\"DO NOT SHOW IN UI\"", + "ShowSummaryChangeOption": "N", + "Publish": "Y" + } +] From ec49359a2710db8da831dcad64dd63296c637777 Mon Sep 17 00:00:00 2001 From: hmcts-version1-ignacio Date: Fri, 23 Aug 2024 10:25:06 +0100 Subject: [PATCH 2/2] CIV-14895 Update API tests --- .../judgmentOnline/api_judgment_online_spec_1v1_test.js | 2 +- .../judgmentOnline/api_judgment_online_spec_1v2_test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/tests/api_tests/judgmentOnline/api_judgment_online_spec_1v1_test.js b/e2e/tests/api_tests/judgmentOnline/api_judgment_online_spec_1v1_test.js index 24165f9c7a..f7faad2da1 100644 --- a/e2e/tests/api_tests/judgmentOnline/api_judgment_online_spec_1v1_test.js +++ b/e2e/tests/api_tests/judgmentOnline/api_judgment_online_spec_1v1_test.js @@ -35,7 +35,7 @@ Scenario('SetAside Default Judgment after judgment error - Spec claim 1v1 - Case await api_spec.defaultJudgmentSpec(config.applicantSolicitorUser, mpScenario, false); console.log('--setAsideJudgment--'); console.log(` user : ${caseWorkerUser.email} : config.testEarlyAdopterCourts : ${config.testEarlyAdopterCourts}`); - await api_spec.setAsideJudgment(config.hearingCenterAdminWithRegionId2, 'JUDGMENT_ERROR','ORDER_AFTER_DEFENCE','PROCEEDS_IN_HERITAGE_SYSTEM'); + await api_spec.setAsideJudgment(config.hearingCenterAdminWithRegionId2, 'JUDGMENT_ERROR','ORDER_AFTER_DEFENCE','All_FINAL_ORDERS_ISSUED'); } }); diff --git a/e2e/tests/api_tests/judgmentOnline/api_judgment_online_spec_1v2_test.js b/e2e/tests/api_tests/judgmentOnline/api_judgment_online_spec_1v2_test.js index dd8d9f0bf3..0b34ec2231 100644 --- a/e2e/tests/api_tests/judgmentOnline/api_judgment_online_spec_1v2_test.js +++ b/e2e/tests/api_tests/judgmentOnline/api_judgment_online_spec_1v2_test.js @@ -56,7 +56,7 @@ Scenario('Default judgment Spec claim 1v2 - Set Aside after defence - Case taken await api_spec.amendRespondent1ResponseDeadline(config.systemupdate); await api_spec.defaultJudgmentSpec(config.applicantSolicitorUser, mpScenario, false); console.log('--setAsideJudgment--'); - await api_spec.setAsideJudgment(config.hearingCenterAdminWithRegionId2, 'JUDGE_ORDER', 'ORDER_AFTER_DEFENCE', 'PROCEEDS_IN_HERITAGE_SYSTEM'); + await api_spec.setAsideJudgment(config.hearingCenterAdminWithRegionId2, 'JUDGE_ORDER', 'ORDER_AFTER_DEFENCE', 'All_FINAL_ORDERS_ISSUED'); } });