-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/CIV-14440
- Loading branch information
Showing
9 changed files
with
181 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
ccd-definition/CaseEvent/Camunda/DocmosisEvents-SettleDiscontinue-nonprod.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ | ||
"CaseTypeID": "CIVIL", | ||
"ID": "SEND_SETTLE_CLAIM_PAID_IN_FULL_LETTER_TO_LIP_DEFENDANT1", | ||
"Name": "Settle claim paid full letter", | ||
"Description": "Send Settle claim mark paid in full Letter to LiP Defendant 1", | ||
"PreConditionState(s)": "*", | ||
"PostConditionState": "*", | ||
"SecurityClassification": "Public", | ||
"CallBackURLAboutToSubmitEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-submit", | ||
"ShowSummary": "N", | ||
"ShowEventNotes": "N", | ||
"RetriesTimeoutURLAboutToSubmitEvent": 0 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
e2e/tests/api_tests/lrspec_cui/api_1v1_spec_cui_discontinue_claim_test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* eslint-disable no-unused-vars */ | ||
|
||
const config = require('../../../config.js'); | ||
const {createAccount, deleteAccount} = require('../../../api/idamHelper'); | ||
|
||
const claimType = 'SmallClaims'; | ||
let caseId; | ||
|
||
Feature('CCD 1v1 API test @api-spec-cui @api-nonprod @api-settle-discont'); | ||
|
||
Before(async () => { | ||
await createAccount(config.defendantCitizenUser2.email, config.defendantCitizenUser2.password); | ||
}); | ||
|
||
async function prepareClaimLRvLiPExui(api_spec_cui, carmEnabled) { | ||
let expectedEndState = carmEnabled ? 'IN_MEDIATION' : 'JUDICIAL_REFERRAL'; | ||
caseId = await api_spec_cui.createSpecifiedClaimWithUnrepresentedRespondent(config.applicantSolicitorUser, 'ONE_V_ONE', claimType, carmEnabled); | ||
await api_spec_cui.performCitizenDefendantResponse(config.defendantCitizenUser2, caseId, claimType, carmEnabled); | ||
await api_spec_cui.claimantResponse(config.applicantSolicitorUser, 'FULL_DEFENCE_CITIZEN_DEFENDANT', 'ONE_V_ONE', 'No', expectedEndState, carmEnabled); | ||
} | ||
Scenario.only('Discontinue claim 1v1 LR v LiP defendant and claimant response - claim created from exui - CARM not enabled', async ({api_spec_cui}) => { | ||
if (['preview', 'demo'].includes(config.runningEnv)) { | ||
let mpScenario = 'ONE_V_ONE_NO_P_NEEDED'; | ||
await prepareClaimLRvLiPExui(api_spec_cui, false); | ||
await api_spec_cui.discontinueClaim(config.applicantSolicitorUser, mpScenario); | ||
} | ||
}); | ||
|
||
AfterSuite(async ({api_spec_cui}) => { | ||
await api_spec_cui.cleanUp(); | ||
await deleteAccount(config.defendantCitizenUser2.email); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters