Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
5399be1
HDPI-6835: Gen App Doc Sequencing
sadmanrahh Jun 25, 2026
b01ee40
HDPI-6835: Gen App Doc Sequencing Tests
sadmanrahh Jun 25, 2026
6c1a103
HDPI-6835: remove cleanup
sadmanrahh Jun 26, 2026
1d43736
HDPI-6835: add cleanup
sadmanrahh Jun 26, 2026
5839ac0
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
ArunabhaChowdhury Jun 29, 2026
508d500
HDPI-7308: select document screen
sadmanrahh Jun 29, 2026
08647a8
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
sadmanrahh Jun 29, 2026
45938db
HDPI-6835: update migration
sadmanrahh Jun 29, 2026
9fba06d
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
sadmanrahh Jun 29, 2026
3a77a52
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
sadmanrahh Jun 30, 2026
47e4dd3
HDPI-7308: update grants
sadmanrahh Jun 30, 2026
44077db
Merge branch 'master' into HDPI-7308-select-doc-screen
sadmanrahh Jun 30, 2026
ef94710
HDPI-7308: fix select doc screen
sadmanrahh Jun 30, 2026
727b677
HDPI-7308: add radiobuttons
sadmanrahh Jun 30, 2026
f49a099
HDPI-7308: checkstyle fix
sadmanrahh Jun 30, 2026
01dd3b6
HDPI-7308: radiobutton fix
sadmanrahh Jun 30, 2026
040d642
HDPI-7308: radiobutton fix
sadmanrahh Jun 30, 2026
6047d0f
HDPI-7308: radiobutton fix
sadmanrahh Jul 1, 2026
af43416
HDPI-7308: radiobutton fix 2
sadmanrahh Jul 1, 2026
e6f054b
HDPI-7308: radiobutton fix 3
sadmanrahh Jul 1, 2026
a593af7
HDPI-6502: Adding case state change event/page
libanAbdirahman1 Jul 1, 2026
183d5b9
HDPI-7308: radiobutton with question working
sadmanrahh Jul 1, 2026
145df1f
HDPI-7308: radiobutton
sadmanrahh Jul 1, 2026
1e5623b
HDPI-7308: second question working
sadmanrahh Jul 1, 2026
265e23b
HDPI-7308: select second question working
sadmanrahh Jul 1, 2026
fa83e1b
HDPI-7308: radiobutton fixed
sadmanrahh Jul 1, 2026
21272cb
HDPI-7308: page header fixed
sadmanrahh Jul 1, 2026
9825696
new tests added
srinijg Jul 1, 2026
b0b507d
HDPI-7308: make amend visible for judges
sadmanrahh Jul 2, 2026
309bb68
new grep tag added
srinijg Jul 2, 2026
95c58e6
Merge remote-tracking branch 'origin/master' into HDPI-6835-Automation
srinijg Jul 2, 2026
933cb34
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
srinijg Jul 2, 2026
f348ecb
Merge remote-tracking branch 'origin/HDPI-6835-genApp-doc-sequencing'…
srinijg Jul 2, 2026
e8aa513
HDPI-6835: flyway version fix
sadmanrahh Jul 2, 2026
2c84d38
Merge remote-tracking branch 'origin/HDPI-6835-genApp-doc-sequencing'…
srinijg Jul 2, 2026
2c6a8d7
HDPI-7308: fix error handling
sadmanrahh Jul 2, 2026
60127aa
HDPI-7308: refactor to enum
sadmanrahh Jul 2, 2026
1d5a9c2
HDPI-7308: add tests
sadmanrahh Jul 2, 2026
ea4c96f
HDPI-7308: resolve pr comments
sadmanrahh Jul 2, 2026
519663a
HDPI-7308: uncategorisedDocuments fix
sadmanrahh Jul 3, 2026
6e8e41a
HDPI-7308: Resolve Merge Conflicts
sadmanrahh Jul 3, 2026
9d9932b
HDPI-7308: Fix JsonNaming
sadmanrahh Jul 3, 2026
df2efa4
HDPI-6502:Updating roles and adding tests
libanAbdirahman1 Jul 3, 2026
90dcddd
HDPI-6502:Fixing checkstyle issues
libanAbdirahman1 Jul 3, 2026
66b9ba2
HDPI-6502:Adding missing access on new states
libanAbdirahman1 Jul 3, 2026
43a0732
Merge remote-tracking branch 'origin' into HDPI-6502-ExUI-caseworker-…
libanAbdirahman1 Jul 3, 2026
0b54aeb
HDPI-6502:Fixing checkstyle issues
libanAbdirahman1 Jul 3, 2026
139c6dd
HDPI-7308: add not null constraint
sadmanrahh Jul 3, 2026
fa0a8a2
HDPI-6502:Minor refactoring
libanAbdirahman1 Jul 3, 2026
8fb9133
Merge remote-tracking branch 'origin' into HDPI-6502-ExUI-caseworker-…
libanAbdirahman1 Jul 3, 2026
f0ef5bd
HDPI-6502:Actioning review comments
libanAbdirahman1 Jul 3, 2026
52764ec
Merge remote-tracking branch 'origin' into HDPI-6502-ExUI-caseworker-…
libanAbdirahman1 Jul 3, 2026
802d97a
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
PadmaDeenadayalan Jul 6, 2026
008923d
Merge branch 'master' into HDPI-7308-select-doc-screen
ArunabhaChowdhury Jul 6, 2026
d2d33fa
Merge remote-tracking branch 'origin' into HDPI-6502-ExUI-caseworker-…
libanAbdirahman1 Jul 6, 2026
ae6e16f
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
sadmanrahh Jul 6, 2026
5e9b283
HDPI-6835: fix build
sadmanrahh Jul 6, 2026
f8126c4
Merge remote-tracking branch 'origin/HDPI-6835-genApp-doc-sequencing'…
srinijg Jul 6, 2026
4b82dcd
HDPI-6502:Fixing changeCaseState event access
libanAbdirahman1 Jul 6, 2026
d5e3f37
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
srinijg Jul 7, 2026
5bcd75e
Merge remote-tracking branch 'origin/HDPI-6835-genApp-doc-sequencing'…
srinijg Jul 7, 2026
6152dfd
HDPI-7308: fix UI
sadmanrahh Jul 7, 2026
4fe7b9f
Merge branch 'master' into HDPI-7308-select-doc-screen
sadmanrahh Jul 7, 2026
8908d5b
payload updated
srinijg Jul 7, 2026
674c3cc
HDPI-6835: fix docs not showing
sadmanrahh Jul 8, 2026
c0021b3
Merge remote-tracking branch 'origin/HDPI-6835-genApp-doc-sequencing'…
srinijg Jul 8, 2026
107f636
Merge remote-tracking branch 'origin/master' into HDPI-7308-Automation
srinijg Jul 8, 2026
bc00c75
Merge branch 'master' into HDPI-7308-select-doc-screen
srinijg Jul 8, 2026
8f649a3
new tests added
srinijg Jul 8, 2026
e3a59cc
Merge branch 'master' into HDPI-6502-ExUI-caseworker-change-case-state
scottstewart-sl Jul 9, 2026
1a98d6f
Merge branch 'master' into HDPI-6502-ExUI-caseworker-change-case-state
scottstewart-sl Jul 9, 2026
ab7b102
Merge branch 'master' into HDPI-6502-ExUI-caseworker-change-case-state
PadmaDeenadayalan Jul 13, 2026
70fcc6a
error validations added
srinijg Jul 13, 2026
e053c28
Merge remote-tracking branch 'origin/master' into HDPI-7308-Automation
srinijg Jul 13, 2026
bb3acff
Merge branch 'master' into HDPI-7308-select-doc-screen
srinijg Jul 13, 2026
ab13b58
HDPI-7308: fix pipeline
sadmanrahh Jul 13, 2026
5a32d1d
HDPI-7308: fix unit test
sadmanrahh Jul 13, 2026
d612270
new validations added
srinijg Jul 13, 2026
7198744
Merge branch 'master' into HDPI-7308-select-doc-screen
srinijg Jul 13, 2026
26d11d5
Merge remote-tracking branch 'origin/HDPI-7308-select-doc-screen' int…
srinijg Jul 13, 2026
dc4c803
conflicts fixed
srinijg Jul 13, 2026
ef9feb7
spacing adjusted
srinijg Jul 13, 2026
2db68d5
case file folders name change
srinijg Jul 13, 2026
9b7d30b
Merge branch 'master' into HDPI-7308-select-doc-screen
srinijg Jul 14, 2026
6001e8c
Merge remote-tracking branch 'origin/HDPI-7308-select-doc-screen' int…
srinijg Jul 14, 2026
3e3a024
new validation registry added
srinijg Jul 14, 2026
2f00600
Merge branch 'master' into HDPI-6502-ExUI-caseworker-change-case-state
PadmaDeenadayalan Jul 14, 2026
a0ca8f5
new tests added
srinijg Jul 14, 2026
0781224
confirm page update
srinijg Jul 15, 2026
529156a
Merge branch 'master' into HDPI-6502-ExUI-caseworker-change-case-state
srinijg Jul 16, 2026
21e9d35
Merge remote-tracking branch 'origin/HDPI-6502-ExUI-caseworker-change…
srinijg Jul 16, 2026
65e7651
conflicts resolved
srinijg Jul 16, 2026
78dece3
spacing update
srinijg Jul 16, 2026
312102e
spacing adjusted
srinijg Jul 16, 2026
e8b412b
update tab action
srinijg Jul 16, 2026
e199c5e
Bumping chart version/ fixing aliases
hmcts-jenkins-j-to-z[bot] Jul 16, 2026
104a000
new tests added
srinijg Jul 17, 2026
78d3a9c
error validations added
srinijg Jul 20, 2026
29f5475
validations added
srinijg Jul 20, 2026
ca0c6b9
Merge remote-tracking branch 'origin/HDPI-6636-Caseworker-genapps' in…
srinijg Jul 20, 2026
b3d94ec
remove tests
srinijg Jul 20, 2026
6e557d8
merge conflicts
srinijg Jul 20, 2026
ce4a887
spacing adjustment
srinijg Jul 20, 2026
44bbde9
spacing
srinijg Jul 20, 2026
d211b26
adjusting space
srinijg Jul 20, 2026
1e0c3e3
spacing
srinijg Jul 20, 2026
46e5faf
Merge remote-tracking branch 'origin/HDPI-6636-Caseworker-genapps' in…
srinijg Jul 20, 2026
f8dc5c1
field updated
srinijg Jul 20, 2026
38304c2
Merge remote-tracking branch 'origin/HDPI-6636-Caseworker-genapps' in…
srinijg Jul 21, 2026
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
export const enterGenappApplication = {
mainHeader: `Application details`,
whichPartyMadeAppQuestion: `Which party made the application?`,
whatDateAppReceivedQuestion: `What date was the application received?`,
typeOfAppQuestion: `Which type of application has the applicant made?`,
adjournRadioOption: `Adjourn`,
setAsideRadioOption: `Set aside`,
somethingElseRadioOption: `Something else`,
dayTextLabel: `Day`,
monthTextLabel: `Month`,
yearTextLabel: `Year`,
dateTypeHiddenUserInput: 'past',
whichCategoriesHiddenTextLabel: `Which categories apply?`,
whichCategoriesHiddenTextInput: 400,
errorValidation: `YES`,
eventCouldNotBeCreatedErrorMessageHeader: `The event could not be created`,
thereIsProbErrorMessageHeader: `There is a problem`,
errorValidationType: { one: `textField`, two: `radioOptions`, three: `checkBox`, four: `dropDown`, five: `dateField` },
errorValidationField: {
errorRadioOption1: [
{ type: `none`, input: ``, errMessage: `Which party made the application? is required`, errInlineMessage: `Field is required` },
],
errorRadioOption2: [
{ type: `none`, input: ``, errMessage: `Which type of application has the applicant made? is required`, errInlineMessage: `Which type of application has the applicant made? is required` },
],
errorDateField: [
{ type: `empty`, input: `empty`, errMessage: `What date was the application received? is required`,errInlineMessage: `What date was the application received? is required`},
{ type: `invalid`, input: `invalid`, errMessage: `What date was the application received? is not valid `,errInlineMessage: `The data entered is not valid for What date was the application received?`},
{ type: `future`, input: 'future', errMessage: `Date the application was received must be in the past`, errInlineMessage: `The data entered is not valid for What date was the application received?` },
{ type: `present`, input: 'present', errMessage: `Date the application was received must be in the past`, errInlineMessage: `The data entered is not valid for What date was the application received?` },
{ type: `past`, input: 'past', errMessage: ``, errInlineMessage: `` },

],
errorTextField: [
{ type: `moreThanMax`, input: 505, errMessage: `In ‘Which categories apply’, you have entered more than the maximum number of characters (500)` },
{ type: `empty`, input: `EMPTY`, errMessage: `Which categories apply? is required `},
]
},
continueButton: `Continue`,
previousButton: `Previous`,
cancelLink: `Cancel`,
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const enterGenAppapplicationFee = {
mainHeader: `Application fee`,
continueButton: `Save and continue`,
previousButton: `Previous`,
cancelLink: `Cancel`,
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export const enterGenAppHearingDate = {
mainHeader: `Hearing date`,
hearingInNext14DaysQuestion: `Is there a hearing for this case in the next 14 days?`,
yesRadioOption: `Yes`,
noRadioOption: `No`,
errorValidation: `YES`,
errorValidationType: { one: `textField`, two: `radioOptions`, three: `checkBox`, four: `dropDown`, five: `dateField` },
errorValidationField: {
errorRadioOption: [
{ type: `none`, input: ``, errMessage: `Is there a hearing for this case in the next 14 days? is required`, errInlineMessage: `Is there a hearing for this case in the next 14 days? is required` },
],
},
continueButton: `Continue`,
previousButton: `Previous`,
cancelLink: `Cancel`,
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ export * from './selectDocument.page.data';
export * from './amendDocumentDetails.page.data';
export * from './changeCaseState.page.data';
export * from './checkYourAnswersChangeState.page.data';
export * from './confirmCaseStateChange.page.data';
export * from './confirmCaseStateChange.page.data';
export * from './enterGenAppapplicationDetails.page.data';
export * from './enterGenApphearingDate.page.data';
export * from './enterGenAppapplicationFee.page.data';
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export default {
'amendDocumentsselectDocument': 'selectDocument',
'changeCaseStatechangeCaseStatePage': 'changeCaseState',
'changeCaseState/confirm': 'confirmCaseStateChange'
};
'changeCaseState/confirm': 'confirmCaseStateChange',
'enterGenAppapplicationDetails': 'enterGenAppapplicationDetails',
'enterGenApphearingDate': 'enterGenApphearingDate',
'enterGenAppapplicationFee': 'enterGenAppapplicationFee',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we drop this trailing comma?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seymour-quality we will be adding more URL mappings, so this should be ok for now

};
3 changes: 2 additions & 1 deletion src/e2eTest/data/page-data/caseSummary.page.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ export const caseSummary = {
manageDocuments:{
amend : 'Manage documents: Amend'
},
changeCaseState: 'Change case state'
changeCaseState: 'Change case state',
enterAGenApp: 'Enter a general application'
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
import { createCaseApiData, submitCaseApiData } from '@data/api-data';
import { initializeExecutor } from '@utils/controller';
import test from '@playwright/test';
import { caseInfo } from '@utils/actions/custom-actions';
import { PageContentValidation } from '@utils/validations/element-validations/pageContent.validation';
import { caseSummary, user } from '@data/page-data';
import { dismissCookieBanner } from '@config/cookie-banner';
import { initializeCMExecutor, performAction, performValidation } from '@utils/controller-caseManagement';
import { allPartyDetails } from '@utils/actions/custom-actions/custom-actions-caseManagement';
import { enterGenappApplication, enterGenAppapplicationFee, enterGenAppHearingDate } from '@data/page-data-figma/page-data-caseManagement-figma';
import { label } from 'allure-js-commons';

test.use({ storageState: undefined })

test.beforeEach(async ({ page, context }) => {
await context.clearCookies();
initializeExecutor(page);
initializeCMExecutor(page);
allPartyDetails.length = 0;
await performAction('createCaseAPI', { data: createCaseApiData.createCasePayload });
await performAction('submitCaseAPI', { data: submitCaseApiData.submitCasePayloadCaseFileView });
await performAction('updatePaymentAPI');
await performAction('getCaseAPI', 'Link Solicitor');
await performAction('getAllPartyDetails', {
defendant1NameKnown: submitCaseApiData.submitCasePayloadCaseFileView.defendant1.nameKnown,
additionalDefendants: submitCaseApiData.submitCasePayloadCaseFileView.addAnotherDefendant,
payLoad: submitCaseApiData.submitCasePayloadCaseFileView
});
await performAction('navigateToUrl', process.env.MANAGE_CASE_BASE_URL);
await dismissCookieBanner(page, 'additional');
await performAction('login', user.hearingCenterAdmin);
await dismissCookieBanner(page, 'analytics');
await performAction('navigateToSummaryPage');
});

test.afterEach(async () => {
if (caseInfo.id) {
await performAction('deleteCaseRole', '[CLAIMANTSOLICITOR]');
}
PageContentValidation.finaliseTest();

});

test.describe('Case management - Case Worker Enter a General application @nightly', async () => {
test('Case management - Case Worker Enter a General application ADJOURN Journey @CM @regression', async () => {
await performAction('selectAnEvent', { eventType: caseSummary.enterAGenApp });
await performValidation('mainHeader', enterGenappApplication.mainHeader);
await performAction('errorValidationEnterGeneralAppPage', enterGenappApplication.errorValidation);
await performAction('enterApplicationDetails', {
question1: enterGenappApplication.whichPartyMadeAppQuestion, option1: allPartyDetails[0],
question2: enterGenappApplication.typeOfAppQuestion, option2: enterGenappApplication.adjournRadioOption,
label: enterGenappApplication.whichCategoriesHiddenTextLabel,
input: enterGenappApplication.whichCategoriesHiddenTextInput,
label1: enterGenappApplication.dayTextLabel,
label2: enterGenappApplication.monthTextLabel,
label3: enterGenappApplication.yearTextLabel,
dateType: enterGenappApplication.dateTypeHiddenUserInput,
nextPage: enterGenAppHearingDate.mainHeader
})
await performAction('errorValidationHearingDatePage', enterGenAppHearingDate.errorValidation);
await performAction('confirmIfCourtHearingInNext14Days', {
question: enterGenAppHearingDate.hearingInNext14DaysQuestion,
option: enterGenAppHearingDate.yesRadioOption,
nextPage: enterGenAppapplicationFee.mainHeader
});
});

test('Case management - Case Worker Enter a General application SET ASIDE Journey @CM', async () => {
await performAction('selectAnEvent', { eventType: caseSummary.enterAGenApp });
await performValidation('mainHeader', enterGenappApplication.mainHeader);
await performAction('enterApplicationDetails', {
question1: enterGenappApplication.whichPartyMadeAppQuestion, option1: allPartyDetails[1],
question2: enterGenappApplication.typeOfAppQuestion, option2: enterGenappApplication.setAsideRadioOption,
label: enterGenappApplication.whichCategoriesHiddenTextLabel,
input: enterGenappApplication.whichCategoriesHiddenTextInput,
label1: enterGenappApplication.dayTextLabel,
label2: enterGenappApplication.monthTextLabel,
label3: enterGenappApplication.yearTextLabel,
dateType: enterGenappApplication.dateTypeHiddenUserInput,
nextPage: enterGenAppapplicationFee.mainHeader
})
});

test('Case management - Case Worker Enter a General application SOMETHING ELSE Journey @CM', async () => {
await performAction('selectAnEvent', { eventType: caseSummary.enterAGenApp });
await performValidation('mainHeader', enterGenappApplication.mainHeader);
await performAction('enterApplicationDetails', {
question1: enterGenappApplication.whichPartyMadeAppQuestion, option1: allPartyDetails[2],
question2: enterGenappApplication.typeOfAppQuestion, option2: enterGenappApplication.somethingElseRadioOption,
label: enterGenappApplication.whichCategoriesHiddenTextLabel,
input: enterGenappApplication.whichCategoriesHiddenTextInput,
label1: enterGenappApplication.dayTextLabel,
label2: enterGenappApplication.monthTextLabel,
label3: enterGenappApplication.yearTextLabel,
dateType: enterGenappApplication.dateTypeHiddenUserInput,
nextPage: enterGenAppapplicationFee.mainHeader
})
});
});
Loading