Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6761282
TestAutomation-HDPI-3495
AshaJayaprakash Mar 20, 2026
9b2c355
TestAutomation-HDPI-3495
AshaJayaprakash Mar 20, 2026
c7125e7
Added rent and non rent arrears test
AshaJayaprakash Mar 20, 2026
ffc2d22
lint fix
AshaJayaprakash Mar 20, 2026
b83c36d
Merge branch 'HDPI-3495-rent-arrears-frontend' into TestAutomation-HD…
AshaJayaprakash Mar 23, 2026
cc4193f
Merge branch 'HDPI-3495-rent-arrears-frontend' into TestAutomation-HD…
AshaJayaprakash Mar 23, 2026
3ce5116
conflict resolution
AshaJayaprakash Mar 23, 2026
4fe9e31
navigation tests updated
AshaJayaprakash Mar 24, 2026
42e209b
navigation tests updated
AshaJayaprakash Mar 24, 2026
b2d1b38
navigation tests updated
AshaJayaprakash Mar 24, 2026
24e80a3
navigation tests updated
AshaJayaprakash Mar 24, 2026
6960fa6
navigation tests updated
AshaJayaprakash Mar 24, 2026
a1f9e0f
fixed error
AshaJayaprakash Mar 24, 2026
3398844
fixed error
AshaJayaprakash Mar 24, 2026
4a45b9b
Merge branch 'HDPI-3495-rent-arrears-frontend' into TestAutomation-HD…
AshaJayaprakash Mar 24, 2026
44093ad
fixed error
AshaJayaprakash Mar 25, 2026
5047558
Merge branch 'HDPI-3495-rent-arrears-frontend' into TestAutomation-HD…
AshaJayaprakash Mar 25, 2026
3cbac67
Merge branch 'HDPI-3495-rent-arrears-frontend' into TestAutomation-HD…
AshaJayaprakash Mar 25, 2026
75ccbcc
review comment
AshaJayaprakash Mar 25, 2026
71e4317
Merge remote-tracking branch 'origin/TestAutomation-HDPI-3495-3' into…
AshaJayaprakash Mar 25, 2026
ce5d88e
review comment
AshaJayaprakash Mar 25, 2026
e1e6888
Merge branch 'HDPI-3495-rent-arrears-frontend' into TestAutomation-HD…
AshaJayaprakash Mar 25, 2026
442cb7e
fix the pft test
AshaJayaprakash Mar 25, 2026
438914d
Merge branch 'HDPI-3495-rent-arrears-frontend' into TestAutomation-HD…
AshaJayaprakash Mar 27, 2026
63001d2
fixed back link navigation
AshaJayaprakash Mar 27, 2026
0ba4bd8
fixed back link navigation
AshaJayaprakash Mar 27, 2026
7c4d732
fixed conflicts
AshaJayaprakash Mar 27, 2026
9c3114a
fixed conflicts
AshaJayaprakash Mar 28, 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
1 change: 1 addition & 0 deletions src/test/ui/config/axe-exclusions.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export const axe_exclusions = [
'#confirmTenancyDate-2', //page: tenancyStartDateKnown, element: 'No', element_type: radioOption, reason_for_exclusion: 'aria-expanded' attribute is expected for this radio button
'#tenancyTypeConfirm-2', //page: tenancyOccupationContractLicenseAgreement, element: 'No', element_type: radioOption, reason_for_exclusion: 'aria-expanded' attribute is expected for this radio button
'#contactByEmailOrPost', //page: contactPreferenceEmailOrPost, element: 'Yes', element_type: radioOption, reason_for_exclusion: 'aria-expanded' attribute is expected for this radio button
'#rentArrears-2', //page: rentArrears, element: 'Yes', element_type: radioOption, reason_for_exclusion: 'aria-expanded' attribute is expected for this radio button
];
2 changes: 1 addition & 1 deletion src/test/ui/config/urlToFileMapping.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
'confirmation-of-notice-given': 'confirmationOfNoticeGiven',
'non-rent-arrears-dispute': 'nonRentArrearsDispute',
'confirmation-of-notice-date-when-provided': 'noticeDateWhenProvided',
'rent-arrears-dispute': 'rentArrearsDispute',
'rent-arrears-dispute': 'rentArrears',
'payment-interstitial': 'paymentInterstitial',
'repayments-made': 'repaymentsMade',
'landlord-registered': 'landlordRegistered',
Expand Down
245 changes: 122 additions & 123 deletions src/test/ui/data/api-data/submitCase.api.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { v4 as uuidv4 } from 'uuid';

export const submitCaseApiData = {
submitCaseEventName: 'resumePossessionClaim',
//Introductory and Demoted tenancy with Tenancy Licence date known for Rent arrears only
Expand Down Expand Up @@ -97,6 +95,16 @@ export const submitCaseApiData = {
settlementAttempted: 'NO',
noticeServed: process.env.NOTICE_SERVED,
notice_NoticePostedDate: '2025-11-10',
rentDetails_CurrentRent: '100000',
rentDetails_Frequency: 'MONTHLY',
rentDetails_CalculatedDailyCharge: '3285',
rentSectionPaymentFrequency: 'MONTHLY',
rentDetails_FormattedCalculatedDailyCharge: '£32.85',
rentDetails_PerDayCorrect: 'YES',
showRentArrearsPage: 'Yes',
rentArrears_Total: '200000',
rentArrears_ThirdPartyPayments: 'NO',
arrearsJudgmentWanted: 'NO',
notice_NoticeDocuments: [],
notice_NoticeServiceMethod: 'FIRST_CLASS_POST',
claimantNamePossessiveForm: null,
Expand Down Expand Up @@ -199,8 +207,7 @@ export const submitCaseApiData = {
},
};
},
//Assured tenancy with Tenancy Licence date unknown for Non-Rent arrears only
get submitCasePayloadAssuredTenancy() {
get submitCasePayloadRentNonRent() {
return {
legislativeCountry: 'England',
claimantType: {
Expand Down Expand Up @@ -232,7 +239,7 @@ export const submitCaseApiData = {
orgNameFound: 'Yes',
claimantName: 'Possession Claims Solicitor Org',
isClaimantNameCorrect: 'YES',
claimantContactEmail: 'pcs-solicitor1@test.com',
claimantContactEmail: 'pcs-solicitor-automation@test.com',
isCorrectClaimantContactEmail: 'YES',
orgAddressFound: 'Yes',
organisationAddress: {
Expand All @@ -246,23 +253,65 @@ export const submitCaseApiData = {
isCorrectClaimantContactAddress: 'YES',
claimantProvidePhoneNumber: 'NO',
defendant1: {
nameKnown: 'NO',
addressKnown: 'NO',
nameKnown: 'YES',
firstName: 'Test',
lastName: 'John',
addressKnown: 'YES',
addressSameAsPossession: 'NO',
correspondenceAddress: {
AddressLine1: '10 Second Avenue',
AddressLine2: '',
AddressLine3: '',
PostTown: 'London',
County: '',
Country: '',
PostCode: 'W3 7RX',
},
},
addAnotherDefendant: 'NO',
tenancy_TypeOfTenancyLicence: process.env.TENANCY_TYPE,
tenancy_TenancyLicenceDate: null,
tenancy_TenancyLicenceDocuments: [],
claimDueToRentArrears: 'No',
addAnotherDefendant: 'YES',
additionalDefendants: [
{
value: {
nameKnown: 'YES',
firstName: 'Jeremiah',
lastName: 'Fisher',
addressKnown: 'YES',
addressSameAsPossession: 'YES',
},
id: null,
},
{
value: {
nameKnown: 'YES',
firstName: 'Conrad',
lastName: 'Fisher',
addressKnown: 'YES',
addressSameAsPossession: 'YES',
},
id: null,
},
],
tenancy_TypeOfTenancyLicence: 'INTRODUCTORY_TENANCY',
tenancy_TenancyLicenceDate: '2026-02-10',
preActionProtocolCompleted: 'NO',
mediationAttempted: 'NO',
settlementAttempted: 'NO',
noticeServed: process.env.NOTICE_SERVED,
showRentSectionPage: 'No',
noRentArrears_ShowGroundReasonPage: 'Yes',
noRentArrears_MandatoryGrounds: [],
noRentArrears_DiscretionaryGrounds: ['ALTERNATIVE_ACCOMMODATION_GROUND9'],
assuredNoArrearsReasons_SuitableAlternativeAccomodation: 'accommodation details test',
noticeServed: 'No',
rentDetails_CurrentRent: '100000',
rentDetails_Frequency: 'MONTHLY',
rentDetails_CalculatedDailyCharge: '3285',
rentSectionPaymentFrequency: 'MONTHLY',
rentDetails_FormattedCalculatedDailyCharge: '£32.85',
rentDetails_PerDayCorrect: 'YES',
tenancy_TenancyLicenceDocuments: [],
showIntroductoryDemotedOtherGroundReasonPage: 'Yes',
introGrounds_HasIntroductoryDemotedOtherGroundsForPossession: 'YES',
introGrounds_IntroductoryDemotedOrOtherGrounds: ['ANTI_SOCIAL', 'RENT_ARREARS'],
antiSocialBehaviourGround: 'Antisocial',
showRentArrearsPage: 'Yes',
rentArrears_Total: '200000',
rentArrears_ThirdPartyPayments: 'NO',
arrearsJudgmentWanted: 'NO',
claimantNamePossessiveForm: 'Possession Claims Solicitor Org’s',
claimantCircumstancesSelect: 'NO',
hasDefendantCircumstancesInfo: 'NO',
Expand All @@ -277,12 +326,18 @@ export const submitCaseApiData = {
hasUnderlesseeOrMortgagee: 'NO',
wantToUploadDocuments: 'NO',
applicationWithClaim: 'NO',
languageUsed: 'ENGLISH_AND_WELSH',
languageUsed: 'ENGLISH',
completionNextStep: 'SUBMIT_AND_PAY_NOW',
statementOfTruth: {
completedBy: 'CLAIMANT',
fullNameClaimant: 'fg',
positionClaimant: 'fg',
agreementClaimant: ['BELIEVE_TRUE'],
},
};
},
//Secure and Flexible Tenancy with Tenancy Licence date unknown for Non-Rent arrears only
get submitCasePayloadSecureFlexibleTenancy() {
//Assured tenancy with Tenancy Licence date unknown for Non-Rent arrears only
get submitCasePayloadAssuredTenancy() {
return {
legislativeCountry: 'England',
claimantType: {
Expand Down Expand Up @@ -335,47 +390,36 @@ export const submitCaseApiData = {
tenancy_TypeOfTenancyLicence: process.env.TENANCY_TYPE,
tenancy_TenancyLicenceDate: null,
tenancy_TenancyLicenceDocuments: [],
secureOrFlexibleDiscretionaryGrounds: ['DOMESTIC_VIOLENCE'],
secureOrFlexibleMandatoryGrounds: [],
secureOrFlexibleMandatoryGroundsAlt: [],
secureOrFlexibleDiscretionaryGroundsAlt: [],
domesticViolenceGround: 'Domestic violence test',
showBreachOfTenancyTextarea: null,
showReasonsForGroundsPage: 'Yes',
preActionProtocolCompleted: 'YES',
claimDueToRentArrears: 'No',
preActionProtocolCompleted: 'NO',
mediationAttempted: 'NO',
settlementAttempted: 'NO',
noticeServed: process.env.NOTICE_SERVED,
showRentSectionPage: 'No',
noRentArrears_ShowGroundReasonPage: 'Yes',
noRentArrears_MandatoryGrounds: [],
noRentArrears_DiscretionaryGrounds: ['ALTERNATIVE_ACCOMMODATION_GROUND9'],
assuredNoArrearsReasons_SuitableAlternativeAccomodation: 'accommodation details test',
claimantNamePossessiveForm: 'Possession Claims Solicitor Org’s',
claimantCircumstancesSelect: 'NO',
hasDefendantCircumstancesInfo: 'NO',
suspensionOfRTB_ShowHousingActsPage: 'No',
demotionOfTenancy_ShowHousingActsPage: 'No',
suspensionToBuyDemotionOfTenancyPages: 'No',
claimingCostsWanted: 'NO',
hasUnderlesseeOrMortgagee: 'NO',
wantToUploadDocuments: 'NO',
applicationWithClaim: 'NO',
notice_NoticeServiceMethod: 'EMAIL',
notice_NoticeEmailExplanation: null,
notice_NoticeEmailSentDateTime: null,
notice_NoticeDocuments: [],
alternativesToPossession: [],
claimingCostsWanted: 'NO',
additionalReasonsForPossession: {
hasReasons: 'NO',
},
hasUnderlesseeOrMortgagee: 'NO',
wantToUploadDocuments: 'NO',
applicationWithClaim: 'NO',
languageUsed: 'ENGLISH_AND_WELSH',
completionNextStep: 'SUBMIT_AND_PAY_NOW',
statementOfTruth: {
completedBy: 'CLAIMANT',
fullNameClaimant: 'fg',
positionClaimant: 'fg',
agreementClaimant: ['BELIEVE_TRUE'],
},
};
},
//Other tenancy with Tenancy Licence date unknown for Non-Rent arrears only
get submitCasePayloadOtherTenancy() {
//Secure and Flexible Tenancy with Tenancy Licence date unknown for Non-Rent arrears only
get submitCasePayloadSecureFlexibleTenancy() {
return {
legislativeCountry: 'England',
claimantType: {
Expand Down Expand Up @@ -407,7 +451,7 @@ export const submitCaseApiData = {
orgNameFound: 'Yes',
claimantName: 'Possession Claims Solicitor Org',
isClaimantNameCorrect: 'YES',
claimantContactEmail: 'pcs-solicitor-automation@test.com',
claimantContactEmail: 'pcs-solicitor1@test.com',
isCorrectClaimantContactEmail: 'YES',
orgAddressFound: 'Yes',
organisationAddress: {
Expand All @@ -425,15 +469,17 @@ export const submitCaseApiData = {
addressKnown: 'NO',
},
addAnotherDefendant: 'NO',
tenancy_TypeOfTenancyLicence: 'OTHER',
tenancy_DetailsOfOtherTypeOfTenancyLicence: 'Other tenancy - short term',
tenancy_TypeOfTenancyLicence: process.env.TENANCY_TYPE,
tenancy_TenancyLicenceDate: null,
tenancy_TenancyLicenceDocuments: [],
showIntroductoryDemotedOtherGroundReasonPage: 'Yes',
introGrounds_HasIntroductoryDemotedOtherGroundsForPossession: 'YES',
introGrounds_IntroductoryDemotedOrOtherGrounds: ['ANTI_SOCIAL'],
antiSocialBehaviourGround: 'Antisocial behaviour',
preActionProtocolCompleted: 'NO',
secureOrFlexibleDiscretionaryGrounds: ['DOMESTIC_VIOLENCE'],
secureOrFlexibleMandatoryGrounds: [],
secureOrFlexibleMandatoryGroundsAlt: [],
secureOrFlexibleDiscretionaryGroundsAlt: [],
domesticViolenceGround: 'Domestic violence test',
showBreachOfTenancyTextarea: null,
showReasonsForGroundsPage: 'Yes',
preActionProtocolCompleted: 'YES',
mediationAttempted: 'NO',
settlementAttempted: 'NO',
noticeServed: process.env.NOTICE_SERVED,
Expand All @@ -443,15 +489,19 @@ export const submitCaseApiData = {
suspensionOfRTB_ShowHousingActsPage: 'No',
demotionOfTenancy_ShowHousingActsPage: 'No',
suspensionToBuyDemotionOfTenancyPages: 'No',
alternativesToPossession: [],
claimingCostsWanted: 'NO',
hasUnderlesseeOrMortgagee: 'NO',
wantToUploadDocuments: 'NO',
applicationWithClaim: 'NO',
notice_NoticeServiceMethod: 'EMAIL',
notice_NoticeEmailExplanation: null,
notice_NoticeEmailSentDateTime: null,
notice_NoticeDocuments: [],
alternativesToPossession: [],
additionalReasonsForPossession: {
hasReasons: 'NO',
},
hasUnderlesseeOrMortgagee: 'NO',
wantToUploadDocuments: 'NO',
applicationWithClaim: 'YES',
languageUsed: 'ENGLISH',
languageUsed: 'ENGLISH_AND_WELSH',
completionNextStep: 'SUBMIT_AND_PAY_NOW',
statementOfTruth: {
completedBy: 'CLAIMANT',
Expand All @@ -461,7 +511,8 @@ export const submitCaseApiData = {
},
};
},
get submitCasePayloadRentNonRent() {
//Other tenancy with Tenancy Licence date unknown for Non-Rent arrears only
get submitCasePayloadOtherTenancy() {
return {
legislativeCountry: 'England',
claimantType: {
Expand Down Expand Up @@ -507,77 +558,25 @@ export const submitCaseApiData = {
isCorrectClaimantContactAddress: 'YES',
claimantProvidePhoneNumber: 'NO',
defendant1: {
nameKnown: 'YES',
firstName: 'Test',
lastName: 'John',
addressKnown: 'YES',
addressSameAsPossession: 'NO',
correspondenceAddress: {
AddressLine1: '10 Second Avenue',
AddressLine2: '',
AddressLine3: '',
PostTown: 'London',
County: '',
Country: '',
PostCode: 'W3 7RX',
},
nameKnown: 'NO',
addressKnown: 'NO',
},
addAnotherDefendant: 'YES',
additionalDefendants: [
{
value: {
nameKnown: 'YES',
firstName: 'Jeremiah',
lastName: 'Fisher',
addressKnown: 'YES',
addressSameAsPossession: 'YES',
},
id: null,
},
{
value: {
nameKnown: 'YES',
firstName: 'Conrad',
lastName: 'Fisher',
addressKnown: 'YES',
addressSameAsPossession: 'YES',
},
id: null,
},
],
tenancy_TypeOfTenancyLicence: 'INTRODUCTORY_TENANCY',
addAnotherDefendant: 'NO',
tenancy_TypeOfTenancyLicence: 'OTHER',
tenancy_DetailsOfOtherTypeOfTenancyLicence: 'Other tenancy - short term',
tenancy_TenancyLicenceDate: null,
preActionProtocolCompleted: 'NO',
mediationAttempted: 'NO',
settlementAttempted: 'NO',
noticeServed: 'No',
rentDetails_CurrentRent: '100000',
rentDetails_Frequency: 'MONTHLY',
rentDetails_CalculatedDailyCharge: '3285',
rentSectionPaymentFrequency: 'MONTHLY',
rentDetails_FormattedCalculatedDailyCharge: '£32.85',
rentDetails_PerDayCorrect: 'YES',
tenancy_TenancyLicenceDocuments: [],
showIntroductoryDemotedOtherGroundReasonPage: 'Yes',
introGrounds_HasIntroductoryDemotedOtherGroundsForPossession: 'YES',
introGrounds_IntroductoryDemotedOrOtherGrounds: ['ANTI_SOCIAL', 'RENT_ARREARS'],
antiSocialBehaviourGround: 'Antisocial',
showRentArrearsPage: 'Yes',
rentArrears_Total: '200000',
rentArrears_ThirdPartyPayments: 'NO',
arrearsJudgmentWanted: 'NO',
introGrounds_IntroductoryDemotedOrOtherGrounds: ['ANTI_SOCIAL'],
antiSocialBehaviourGround: 'Antisocial behaviour',
preActionProtocolCompleted: 'NO',
mediationAttempted: 'NO',
settlementAttempted: 'NO',
noticeServed: process.env.NOTICE_SERVED,
claimantNamePossessiveForm: 'Possession Claims Solicitor Org’s',
claimantCircumstancesSelect: 'NO',
hasDefendantCircumstancesInfo: 'NO',
rentArrears_StatementDocuments: [
{
value: {
document_url: `http://dm-store-aat.service.core-compute-aat.internal/documents/${uuidv4()}`,
document_binary_url: `http://dm-store-aat.service.core-compute-aat.internal/documents/${uuidv4()}/binary`,
document_filename: `Rent Arrears ${Date.now()}.docx`,
},
},
],
suspensionOfRTB_ShowHousingActsPage: 'No',
demotionOfTenancy_ShowHousingActsPage: 'No',
suspensionToBuyDemotionOfTenancyPages: 'No',
Expand All @@ -588,7 +587,7 @@ export const submitCaseApiData = {
},
hasUnderlesseeOrMortgagee: 'NO',
wantToUploadDocuments: 'NO',
applicationWithClaim: 'NO',
applicationWithClaim: 'YES',
languageUsed: 'ENGLISH',
completionNextStep: 'SUBMIT_AND_PAY_NOW',
statementOfTruth: {
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/data/page-data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export * from './confirmationOfNoticeGiven.page.data';
export * from './noticeDateWhenProvided.page.data';
export * from './noticeDateWhenNotProvided.page.data';
export * from './contactPreferenceEmailOrPost.page.data';
export * from './rentArrearsDispute.page.data';
export * from './rentArrears.page.data';
export * from './nonRentArrearsDispute.page.data';
export * from './counterClaim.page.data';
export * from './repaymentsMade.page.data';
Expand Down
Loading