-
Notifications
You must be signed in to change notification settings - Fork 2
Hdpi 6636 automation #2226
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
Merged
Merged
Hdpi 6636 automation #2226
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 b01ee40
HDPI-6835: Gen App Doc Sequencing Tests
sadmanrahh 6c1a103
HDPI-6835: remove cleanup
sadmanrahh 1d43736
HDPI-6835: add cleanup
sadmanrahh 5839ac0
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
ArunabhaChowdhury 508d500
HDPI-7308: select document screen
sadmanrahh 08647a8
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
sadmanrahh 45938db
HDPI-6835: update migration
sadmanrahh 9fba06d
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
sadmanrahh 3a77a52
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
sadmanrahh 47e4dd3
HDPI-7308: update grants
sadmanrahh 44077db
Merge branch 'master' into HDPI-7308-select-doc-screen
sadmanrahh ef94710
HDPI-7308: fix select doc screen
sadmanrahh 727b677
HDPI-7308: add radiobuttons
sadmanrahh f49a099
HDPI-7308: checkstyle fix
sadmanrahh 01dd3b6
HDPI-7308: radiobutton fix
sadmanrahh 040d642
HDPI-7308: radiobutton fix
sadmanrahh 6047d0f
HDPI-7308: radiobutton fix
sadmanrahh af43416
HDPI-7308: radiobutton fix 2
sadmanrahh e6f054b
HDPI-7308: radiobutton fix 3
sadmanrahh a593af7
HDPI-6502: Adding case state change event/page
libanAbdirahman1 183d5b9
HDPI-7308: radiobutton with question working
sadmanrahh 145df1f
HDPI-7308: radiobutton
sadmanrahh 1e5623b
HDPI-7308: second question working
sadmanrahh 265e23b
HDPI-7308: select second question working
sadmanrahh fa83e1b
HDPI-7308: radiobutton fixed
sadmanrahh 21272cb
HDPI-7308: page header fixed
sadmanrahh 9825696
new tests added
srinijg b0b507d
HDPI-7308: make amend visible for judges
sadmanrahh 309bb68
new grep tag added
srinijg 95c58e6
Merge remote-tracking branch 'origin/master' into HDPI-6835-Automation
srinijg 933cb34
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
srinijg f348ecb
Merge remote-tracking branch 'origin/HDPI-6835-genApp-doc-sequencing'…
srinijg e8aa513
HDPI-6835: flyway version fix
sadmanrahh 2c84d38
Merge remote-tracking branch 'origin/HDPI-6835-genApp-doc-sequencing'…
srinijg 2c6a8d7
HDPI-7308: fix error handling
sadmanrahh 60127aa
HDPI-7308: refactor to enum
sadmanrahh 1d5a9c2
HDPI-7308: add tests
sadmanrahh ea4c96f
HDPI-7308: resolve pr comments
sadmanrahh 519663a
HDPI-7308: uncategorisedDocuments fix
sadmanrahh 6e8e41a
HDPI-7308: Resolve Merge Conflicts
sadmanrahh 9d9932b
HDPI-7308: Fix JsonNaming
sadmanrahh df2efa4
HDPI-6502:Updating roles and adding tests
libanAbdirahman1 90dcddd
HDPI-6502:Fixing checkstyle issues
libanAbdirahman1 66b9ba2
HDPI-6502:Adding missing access on new states
libanAbdirahman1 43a0732
Merge remote-tracking branch 'origin' into HDPI-6502-ExUI-caseworker-…
libanAbdirahman1 0b54aeb
HDPI-6502:Fixing checkstyle issues
libanAbdirahman1 139c6dd
HDPI-7308: add not null constraint
sadmanrahh fa0a8a2
HDPI-6502:Minor refactoring
libanAbdirahman1 8fb9133
Merge remote-tracking branch 'origin' into HDPI-6502-ExUI-caseworker-…
libanAbdirahman1 f0ef5bd
HDPI-6502:Actioning review comments
libanAbdirahman1 52764ec
Merge remote-tracking branch 'origin' into HDPI-6502-ExUI-caseworker-…
libanAbdirahman1 802d97a
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
PadmaDeenadayalan 008923d
Merge branch 'master' into HDPI-7308-select-doc-screen
ArunabhaChowdhury d2d33fa
Merge remote-tracking branch 'origin' into HDPI-6502-ExUI-caseworker-…
libanAbdirahman1 ae6e16f
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
sadmanrahh 5e9b283
HDPI-6835: fix build
sadmanrahh f8126c4
Merge remote-tracking branch 'origin/HDPI-6835-genApp-doc-sequencing'…
srinijg 4b82dcd
HDPI-6502:Fixing changeCaseState event access
libanAbdirahman1 d5e3f37
Merge branch 'master' into HDPI-6835-genApp-doc-sequencing
srinijg 5bcd75e
Merge remote-tracking branch 'origin/HDPI-6835-genApp-doc-sequencing'…
srinijg 6152dfd
HDPI-7308: fix UI
sadmanrahh 4fe7b9f
Merge branch 'master' into HDPI-7308-select-doc-screen
sadmanrahh 8908d5b
payload updated
srinijg 674c3cc
HDPI-6835: fix docs not showing
sadmanrahh c0021b3
Merge remote-tracking branch 'origin/HDPI-6835-genApp-doc-sequencing'…
srinijg 107f636
Merge remote-tracking branch 'origin/master' into HDPI-7308-Automation
srinijg bc00c75
Merge branch 'master' into HDPI-7308-select-doc-screen
srinijg 8f649a3
new tests added
srinijg e3a59cc
Merge branch 'master' into HDPI-6502-ExUI-caseworker-change-case-state
scottstewart-sl 1a98d6f
Merge branch 'master' into HDPI-6502-ExUI-caseworker-change-case-state
scottstewart-sl ab7b102
Merge branch 'master' into HDPI-6502-ExUI-caseworker-change-case-state
PadmaDeenadayalan 70fcc6a
error validations added
srinijg e053c28
Merge remote-tracking branch 'origin/master' into HDPI-7308-Automation
srinijg bb3acff
Merge branch 'master' into HDPI-7308-select-doc-screen
srinijg ab13b58
HDPI-7308: fix pipeline
sadmanrahh 5a32d1d
HDPI-7308: fix unit test
sadmanrahh d612270
new validations added
srinijg 7198744
Merge branch 'master' into HDPI-7308-select-doc-screen
srinijg 26d11d5
Merge remote-tracking branch 'origin/HDPI-7308-select-doc-screen' int…
srinijg dc4c803
conflicts fixed
srinijg ef9feb7
spacing adjusted
srinijg 2db68d5
case file folders name change
srinijg 9b7d30b
Merge branch 'master' into HDPI-7308-select-doc-screen
srinijg 6001e8c
Merge remote-tracking branch 'origin/HDPI-7308-select-doc-screen' int…
srinijg 3e3a024
new validation registry added
srinijg 2f00600
Merge branch 'master' into HDPI-6502-ExUI-caseworker-change-case-state
PadmaDeenadayalan a0ca8f5
new tests added
srinijg 0781224
confirm page update
srinijg 529156a
Merge branch 'master' into HDPI-6502-ExUI-caseworker-change-case-state
srinijg 21e9d35
Merge remote-tracking branch 'origin/HDPI-6502-ExUI-caseworker-change…
srinijg 65e7651
conflicts resolved
srinijg 78dece3
spacing update
srinijg 312102e
spacing adjusted
srinijg e8b412b
update tab action
srinijg e199c5e
Bumping chart version/ fixing aliases
hmcts-jenkins-j-to-z[bot] 104a000
new tests added
srinijg 78d3a9c
error validations added
srinijg 29f5475
validations added
srinijg ca0c6b9
Merge remote-tracking branch 'origin/HDPI-6636-Caseworker-genapps' in…
srinijg b3d94ec
remove tests
srinijg 6e557d8
merge conflicts
srinijg ce4a887
spacing adjustment
srinijg 44bbde9
spacing
srinijg d211b26
adjusting space
srinijg 1e0c3e3
spacing
srinijg 46e5faf
Merge remote-tracking branch 'origin/HDPI-6636-Caseworker-genapps' in…
srinijg f8dc5c1
field updated
srinijg 38304c2
Merge remote-tracking branch 'origin/HDPI-6636-Caseworker-genapps' in…
srinijg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...page-data-figma/page-data-caseManagement-figma/enterGenAppapplicationDetails.page.data.ts
This file contains hidden or 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,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`, | ||
| }; |
6 changes: 6 additions & 0 deletions
6
...ata/page-data-figma/page-data-caseManagement-figma/enterGenAppapplicationFee.page.data.ts
This file contains hidden or 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,6 @@ | ||
| export const enterGenAppapplicationFee = { | ||
| mainHeader: `Application fee`, | ||
| continueButton: `Save and continue`, | ||
| previousButton: `Previous`, | ||
| cancelLink: `Cancel`, | ||
| }; |
16 changes: 16 additions & 0 deletions
16
...t/data/page-data-figma/page-data-caseManagement-figma/enterGenApphearingDate.page.data.ts
This file contains hidden or 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,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`, | ||
| }; |
This file contains hidden or 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
7 changes: 5 additions & 2 deletions
7
src/e2eTest/data/page-data-figma/page-data-caseManagement-figma/urlToFileMappingCM.ts
This file contains hidden or 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 |
|---|---|---|
| @@ -1,5 +1,8 @@ | ||
| export default { | ||
| 'amendDocumentsselectDocument': 'selectDocument', | ||
| 'changeCaseStatechangeCaseStatePage': 'changeCaseState', | ||
| 'changeCaseState/confirm': 'confirmCaseStateChange' | ||
| }; | ||
| 'changeCaseState/confirm': 'confirmCaseStateChange', | ||
| 'enterGenAppapplicationDetails': 'enterGenAppapplicationDetails', | ||
| 'enterGenApphearingDate': 'enterGenApphearingDate', | ||
| 'enterGenAppapplicationFee': 'enterGenAppapplicationFee', | ||
| }; | ||
This file contains hidden or 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
99 changes: 99 additions & 0 deletions
99
src/e2eTest/tests/test-caseManagement/caseManagement.caseWorkerGenApps.spec.ts
This file contains hidden or 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,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 | ||
| }) | ||
| }); | ||
| }); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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