Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

CIV-15766 Set Aside Judgment RPA #5151

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
2 changes: 1 addition & 1 deletion ccd-definition/CaseEvent/User/UserEvents-JO-nonprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"Description": "Set aside judgment",
"DisplayOrder": 1,
"PreConditionState(s)": "All_FINAL_ORDERS_ISSUED",
"PostConditionState": "*",
"PostConditionState": "All_FINAL_ORDERS_ISSUED",
"SecurityClassification": "Public",
"ShowSummary": "Y",
"ShowEventNotes": "N",
Expand Down
2 changes: 1 addition & 1 deletion e2e/api/steps_LRspec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ module.exports = {
await waitForFinishedBusinessProcess(caseId);
},

setAsideJudgment: async (user, setAsideReason, setAsideOrderType,expectedState = 'PROCEEDS_IN_HERITAGE_SYSTEM') => {
setAsideJudgment: async (user, setAsideReason, setAsideOrderType,expectedState = 'All_FINAL_ORDERS_ISSUED') => {
console.log(`case in All set aside judgment ${caseId}`);
console.log(`calling setup token *** setAside case ${caseId} user : ${user.email}`);
await apiRequest.setupTokens(user);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,7 @@ Scenario('SetAside Default Judgment Spec claim 1v1 - Record new judgment after h
await api_spec.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, mpScenario);
await api_spec.amendRespondent1ResponseDeadline(config.systemupdate);
await api_spec.defaultJudgmentSpec(config.applicantSolicitorUser, mpScenario, false);
await api_spec.setAsideJudgment(caseWorkerUserReg2, 'JUDGE_ORDER','ORDER_AFTER_APPLICATION', 'AWAITING_RESPONDENT_ACKNOWLEDGEMENT');
console.log('--defendantResponse--');
await api_spec.defendantResponse(config.defendantSolicitorUser);
console.log('--claimantResponse--');
await api_spec.claimantResponse(config.applicantSolicitorUser, 'FULL_DEFENCE', mpScenario,
'AWAITING_APPLICANT_INTENTION');
console.log('--sdo--');
await api_spec.createSDO(judgeUser, 'CREATE_FAST_NO_SUM');
console.log('--createFinalOrderJO--');
await api_spec.createFinalOrderJO(judgeUser, 'FREE_FORM_ORDER');
await api_spec.setAsideJudgment(caseWorkerUserReg2, 'JUDGE_ORDER','ORDER_AFTER_APPLICATION', 'All_FINAL_ORDERS_ISSUED');
console.log('--recordJudgment--');
ShwetaTandel-hmcts marked this conversation as resolved.
Show resolved Hide resolved
await api_spec.recordJudgment(caseWorkerUserReg1, mpScenario, 'DETERMINATION_OF_MEANS', 'PAY_IMMEDIATELY');
await api_spec.editJudgment(caseWorkerUserReg1, mpScenario, 'DETERMINATION_OF_MEANS', 'PAY_IN_INSTALMENTS');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,7 @@ Scenario('Default judgment Spec claim 1v2 - Set Aside After Order - Record new
await api_spec.amendRespondent1ResponseDeadline(config.systemupdate);
await api_spec.defaultJudgmentSpec(config.applicantSolicitorUser, mpScenario, false);
console.log('--setAsideJudgment--');
await api_spec.setAsideJudgment(caseWorkerUserReg2, 'JUDGE_ORDER', 'ORDER_AFTER_APPLICATION','AWAITING_RESPONDENT_ACKNOWLEDGEMENT');
console.log('--defendantResponse--');
await api_spec.defendantResponse(config.defendantSolicitorUser, 'FULL_DEFENCE', mpScenario, 'AWAITING_APPLICANT_INTENTION', false,
false,'00000',true);
console.log('--claimantResponse--');
await api_spec.claimantResponse(config.applicantSolicitorUser, 'FULL_DEFENCE', mpScenario,
'JUDICIAL_REFERRAL');
console.log('--sdo--');
await api_spec.createSDO(judgeUser, 'CREATE_FAST_NO_SUM');
console.log('--createFinalOrderJO--');
await api_spec.createFinalOrderJO(judgeUser, 'FREE_FORM_ORDER');
await api_spec.setAsideJudgment(caseWorkerUserReg2, 'JUDGE_ORDER', 'ORDER_AFTER_APPLICATION','All_FINAL_ORDERS_ISSUED');
console.log('--recordJudgment--');
await api_spec.recordJudgment(caseWorkerUserReg1, mpScenario, 'DETERMINATION_OF_MEANS', 'PAY_IMMEDIATELY');
await api_spec.editJudgment(caseWorkerUserReg1, mpScenario, 'DETERMINATION_OF_MEANS', 'PAY_BY_DATE');
Expand Down
Loading