-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: write/issue final decision tests * test: added another PIP test for the purpose of testing. * test: add test perform the issue final decision * test: add tags to the tests for execution * test: added a fix to the decision page input * test: added the retry for the tests to execute smoothly * test: adding the tax credit - generate notice no scenario * test: fix the ci configuration for the tests * test:added the universal credit issue final decision test * test: adding the send to interloc test for the purposes of automation. * fix: removed the unwanted only and reverted the config 0 * fix: adding all the unwanted files to the test * fix: fixed the issue directions error tests * fix: tests for the issue order notice * fix: test that was failing by changing the input fields.... * fix: a method was missed during the merge resolutions --------- Co-authored-by: Pettedson John <pettedson.john1@hmcts.net>
- Loading branch information
Showing
15 changed files
with
1,263 additions
and
30 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
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
51 changes: 51 additions & 0 deletions
51
functional-test/e2e/write-and-issue-final-decision.spec.ts
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,51 @@ | ||
import {test} from "../lib/steps.factory"; | ||
import createCaseBasedOnCaseType from "../api/client/sscs/factory/appeal.type.factory"; | ||
import performAppealDormantOnCase from "../api/client/sscs/appeal.event"; | ||
|
||
let caseId: string; | ||
|
||
test.describe('Issue Final Decision - PIP Appeal Type', {tag: '@pipeline'}, async () => { | ||
|
||
test("Issue Final Decision - Upload Response with Further Information as No - Simple Decision Notice - 'Yes' notice generated. - No Award Given", | ||
async ({issueFinalDecisionSteps}) => { | ||
test.slow(); | ||
let pipCaseId = await createCaseBasedOnCaseType('PIP'); | ||
await issueFinalDecisionSteps.performWriteFinalDecisionForAPIPAppealNoAwardAndNoticeGenerated(pipCaseId); | ||
await issueFinalDecisionSteps.performIssueFinalDecisionForAPIPAppeal(pipCaseId); | ||
await performAppealDormantOnCase(pipCaseId); | ||
}); | ||
|
||
test("Issue Final Decision - Upload Response with Further Information as No - Simple Decision Notice - 'Yes' notice generated. - Yes Award is Given", | ||
async ({issueFinalDecisionSteps}) => { | ||
test.slow(); | ||
let pipCaseId = await createCaseBasedOnCaseType('PIP'); | ||
await issueFinalDecisionSteps.performWriteFinalDecisionForAPIPAppealAwardAndNoticeGenerated(pipCaseId); | ||
await issueFinalDecisionSteps.performIssueFinalDecisionForAPIPAppeal(pipCaseId); | ||
await performAppealDormantOnCase(pipCaseId); | ||
}); | ||
|
||
}) | ||
|
||
test.describe('Issue Final Decision - Tax Credit Appeal Type', {tag: '@pipeline'}, async () => { | ||
|
||
test("Issue Final Decision - Upload Response with Further Information as No - Simple Decision Notice - 'No' notice generated", | ||
async ({issueFinalDecisionSteps}) => { | ||
test.slow(); | ||
let taxCreditCaseId = await createCaseBasedOnCaseType('TAX CREDIT'); | ||
await issueFinalDecisionSteps.performWriteFinalDecisionForATaxCreditAppealAndNoNoticeGenerated(taxCreditCaseId); | ||
await issueFinalDecisionSteps.performIssueFinalDecisionForAPIPAppeal(taxCreditCaseId); | ||
await performAppealDormantOnCase(taxCreditCaseId); | ||
}); | ||
}) | ||
|
||
test.describe('Issue Final Decision - Universal Credit Appeal Type', {tag: '@pipeline'}, async () => { | ||
|
||
test("Issue Final Decision - Simple Decision Notice - 'Yes' notice generated", | ||
async ({issueFinalDecisionSteps}) => { | ||
test.slow(); | ||
let universalCreditCaseId = await createCaseBasedOnCaseType('UC'); | ||
await issueFinalDecisionSteps.performWriteFinalDecisionForAUniversalCreditAppealAndNoticeGenerated(universalCreditCaseId); | ||
await issueFinalDecisionSteps.performIssueFinalDecisionForAPIPAppeal(universalCreditCaseId); | ||
await performAppealDormantOnCase(universalCreditCaseId); | ||
}); | ||
}) |
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
Oops, something went wrong.