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-14143 Test modification #4217

Merged
merged 4 commits into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions src/test/functionalTests/specClaimHelpers/api/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,16 +333,6 @@ module.exports = {
}
caseId = await apiRequest.startEventForLiPCitizen(payload);
await waitForFinishedBusinessProcess(caseId, user);
let newPayload = {
event: 'CREATE_CLAIM_SPEC_AFTER_PAYMENT',
caseDataUpdate: {
issueDate: currentDate,
respondent1ResponseDeadline: currentDate,
},
};
await apiRequest.startEventForCitizen('', caseId, newPayload);
await waitForFinishedBusinessProcess(caseId, user);
await assignSpecCase(caseId, null);

if (carmEnabled) {
console.log('carm enabled, updating submitted date');
Expand All @@ -364,6 +354,18 @@ module.exports = {
await testingSupport.updateCaseData(caseId, submittedDate);
console.log('submitted date update to after minti date');
}

await apiRequest.setupTokens(user);
let newPayload = {
event: 'CREATE_CLAIM_SPEC_AFTER_PAYMENT',
caseDataUpdate: {
issueDate: currentDate,
respondent1ResponseDeadline: currentDate,
},
};
await apiRequest.startEventForCitizen('', caseId, newPayload);
await waitForFinishedBusinessProcess(caseId, user);
await assignSpecCase(caseId, null);
return caseId;
},

Expand Down
Loading