Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions src/test/ui/config/axe-exclusions.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ export const axe_exclusions = [
'#tenancyTypeConfirm-2', //page: tenancyOccupationContractLicenseAgreement, element: 'No', element_type: radioOption, reason_for_exclusion: 'aria-expanded' attribute is expected for this radio button
'#repaymentsAgreed', //page: repaymentsAgreed, element: 'Yes', 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
'#dependantChildren', //page: doYouHaveAnyDependantChildren, element: 'Yes', element_type: radioOption, reason_for_exclusion: 'aria-expanded' attribute is expected for this radio button
'#otherDependants', //page: doYouHaveAnyOtherDependants, 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
];
4 changes: 4 additions & 0 deletions src/test/ui/config/urlToFileMapping.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ export default {
'landlord-licensed': 'landlordLicensed',
'written-terms': 'writtenTerms',
'contact-preferences-email-or-post': 'contactPreferenceEmailOrPost',
'your-household-and-circumstances': 'yourHouseholdAndCircumstances',
'do-you-have-any-dependant-children': 'doYouHaveAnyDependantChildren',
'do-you-have-any-other-dependants': 'doYouHaveAnyOtherDependants',
'do-any-other-adults-live-in-your-home': 'doAnyOtherAdultsLiveInYourHome',
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const doAnyOtherAdultsLiveInYourHome = {
mainHeader: `Do any other adults live in your home? (placeholder)`,
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export const doYouHaveAnyDependantChildren = {
mainHeader: `Do you have any dependant children?`,
respondToClaimParagraph: `Respond to a property possession claim`,
dependantChildrenParagraph: `Dependant children are children you look after financially.`,
yesRadioOption: `Yes`,
noRadioOption: `No`,
giveDetailsHiddenTextLabel: `Give details about your dependant children`,
detailsTextInput: `1 dependant child - Name:Samuel and Age:7`,
saveAndContinueButton: `Save and continue`,
youShouldIncludeHiddenHintText: `You should include details about how many dependant children you have and how old they are`,
tooManyCharacterHiddenHintText: `You have 1 character too many`,
youHave500CharactersHiddenHintText: `You can enter up to 500 characters`,
thereIsAProblemErrorMessageHeader: `There is a problem`,
selectIfYouHaveAnyDependantChildrenErrorMessage: `Select if you have any dependant children`,
giveDetailsAboutYourDependantChildrenErrorMessage: `Give details about your dependant children`,
mustBeUnderCharacterLimitErrorMessage: `Must be 500 characters or fewer`,
saveForLaterButton: `Save for later`,
backLink: `Back`,
feedbackLink: `feedback (opens in new tab)`,
pageSlug: `do-you-have-any-dependant-children`,
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export const doYouHaveAnyOtherDependants = {
mainHeader: `Do you have any other dependants?`,
respondToClaimParagraph: `Respond to a property possession claim`,
dependantArePeopleParagraph: `Dependants are people you look after financially, like elderly relatives.`,
yesRadioOption: `Yes`,
noRadioOption: `No`,
giveDetailsHiddenTextLabel: `Give details about your other dependants`,
detailsTextInput: `1 dependant elderly - Name:Johnson and Age :70`,
saveAndContinueButton: `Save and continue`,
youShouldIncludeHiddenHintText: `You should include details about how many other dependants you have, how old they are and anything else you think the court should know about them`,
tooManyCharacterHiddenHintText: `You have 1 character too many`,
youHave500CharactersHiddenHintText: `You have 500 characters remaining`,
thereIsAProblemErrorMessageHeader: `There is a problem`,
selectIfYouHaveAnyOtherDependantsErrorMessage: `Select if you have any other dependants`,
giveDetailsAboutYourOtherDependantsErrorMessage: `Give details about your other dependants`,
mustBeUnderCharacterLimitErrorMessage: `Must be 500 characters or fewer`,
saveForLaterButton: `Save for later`,
backLink: `Back`,
feedbackLink: `feedback (opens in new tab)`,
pageSlug: `do-you-have-any-other-dependants`,
};
5 changes: 4 additions & 1 deletion src/test/ui/data/page-data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export * from './tenancyDateUnknown.page.data';
export * from './tenancyDateDetails.page.data';
export * from './dashboard.page.data';
export * from './installmentPayments.data';
export * from './situationInterstitialScreen.page.data';
export * from './yourHouseholdAndCircumstances.page.data';
export * from './landlordLicensed.page.data';
export * from './writtenTerms.page.data';
export * from './feedback.page.data';
export * from './doYouHaveAnyDependantChildren.page.data';
export * from './doYouHaveAnyOtherDependants.page.data';
export * from './doAnyOtherAdultsLiveInYourHome.page.data';

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export const yourHouseholdAndCircumstances = {
mainHeader: `Your household and circumstances`,
respondToAPropertyPossessionParagraph: `Respond to a property possession claim`,
youMustNowAnswerParagraph: `You must now answer some questions about your household and personal circumstances. This will help a judge understand your situation.`,
youWillBeParagraph: `You’ll be asked about:`,
anyDependantsList: `any dependants you have (people you look after financially)`,
otherAdultsList: `other adults that live in your home`,
whetherYouWouldList: `whether you would have anywhere else to live if you were asked to leave your home`,
anyPersonalList: `any personal circumstances that have led to your case that you think a judge should know about`,
anyExceptionalHardshipList: `any exceptional hardship you’d experience if you were asked to leave your home`,
theClaimantWillBeParagraph: `The claimant will be able to see your answers.`,
continueButton: `Continue`,
cancelLink: `Cancel`,
cymraegLink: `Cymraeg`,
backLink: `Back`,
feedbackLink: `feedback (opens in new tab)`,
pageSlug: `your-household-and-circumstances`,
};
111 changes: 106 additions & 5 deletions src/test/ui/e2eTest/respondToAClaim.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ import {
dateOfBirth,
defendantNameCapture,
defendantNameConfirmation,
doAnyOtherAdultsLiveInYourHome,
doYouHaveAnyDependantChildren,
doYouHaveAnyOtherDependants,
freeLegalAdvice,
installmentPayments,
nonRentArrearsDispute,
rentArrears,
repaymentsAgreed,
repaymentsMade,
situationInterstitialScreen,
startNow,
tenancyDateDetails,
tenancyTypeDetails,
Expand Down Expand Up @@ -197,6 +199,7 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
});
await performValidation('mainHeader', counterClaim.mainHeader);
await performAction('clickButton', counterClaim.saveAndContinueButton);
// Downstream flow up to 'instalmentPayments' page should be modified since it's Non rent arrears test case.HDPI-5732
await performAction('readPaymentInterstitial');
await performAction('repaymentsMade', {
question: repaymentsMade.mainHeader,
Expand All @@ -206,6 +209,16 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
repaymentAgreedOption: repaymentsAgreed.noRadioOption,
});
await performValidation('mainHeader', installmentPayments.mainHeader);
await performAction('clickButton', installmentPayments.saveAndContinueButton);
await performAction('readYourHouseholdAndCircumstances');
await performAction('doYouHaveAnyDependantChildren', {
dependantChildrenOption: doYouHaveAnyDependantChildren.yesRadioOption,
dependantChildrenInfo: doYouHaveAnyDependantChildren.detailsTextInput,
});
await performAction('doYouHaveAnyOtherDependants', {
otherDependantsOption: doYouHaveAnyOtherDependants.noRadioOption,
});
await performValidation('mainHeader', doAnyOtherAdultsLiveInYourHome.mainHeader);
});

test('Non-RentArrears - Assured- NoticeServed - Yes and NoticeDateProvided - No - NoticeDetails- Yes - Notice date unknown @assured @regression', async () => {
Expand Down Expand Up @@ -254,6 +267,7 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
// placeholder page, so need to be replaced with custom action when actual page is implemented
await performValidation('mainHeader', counterClaim.mainHeader);
await performAction('clickButton', counterClaim.saveAndContinueButton);
// Downstream flow up to 'repaymentsAgreed' page should be modified since it's Non rent arrears test case.HDPI-5732
await performAction('readPaymentInterstitial');
await performAction('repaymentsMade', {
question: repaymentsMade.mainHeader,
Expand All @@ -262,7 +276,15 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
await performAction('repaymentsAgreed', {
repaymentAgreedOption: repaymentsAgreed.amNotSureRadioOption,
});
await performValidation('mainHeader', situationInterstitialScreen.mainHeader);
await performAction('readYourHouseholdAndCircumstances');
await performAction('doYouHaveAnyDependantChildren', {
dependantChildrenOption: doYouHaveAnyDependantChildren.noRadioOption,
});
await performAction('doYouHaveAnyOtherDependants', {
otherDependantsOption: doYouHaveAnyOtherDependants.yesRadioOption,
otherDependantsInfo: doYouHaveAnyOtherDependants.detailsTextInput,
});
await performValidation('mainHeader', doAnyOtherAdultsLiveInYourHome.mainHeader);
});

test('Non-RentArrears - Secure - NoticeServed - Yes and NoticeDateProvided - Yes - NoticeDetails- Yes - Notice date known @secureFlexible @regression', async () => {
Expand Down Expand Up @@ -311,6 +333,7 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
// placeholder page, so need to be replaced with custom action when actual page is implemented
await performValidation('mainHeader', counterClaim.mainHeader);
await performAction('clickButton', counterClaim.saveAndContinueButton);
// Downstream flow up to 'instalmentPayments' page should be modified since it's Non rent arrears test case.HDPI-5732
await performAction('readPaymentInterstitial');
await performAction('repaymentsMade', {
question: repaymentsMade.mainHeader,
Expand All @@ -320,6 +343,15 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
repaymentAgreedOption: repaymentsAgreed.noRadioOption,
});
await performValidation('mainHeader', installmentPayments.mainHeader);
await performAction('clickButton', installmentPayments.saveAndContinueButton);
await performAction('readYourHouseholdAndCircumstances');
await performAction('doYouHaveAnyDependantChildren', {
dependantChildrenOption: doYouHaveAnyDependantChildren.noRadioOption,
});
await performAction('doYouHaveAnyOtherDependants', {
otherDependantsOption: doYouHaveAnyOtherDependants.noRadioOption,
});
await performValidation('mainHeader', doAnyOtherAdultsLiveInYourHome.mainHeader);
});

test('Non-RentArrears - Flexible - NoticeServed - Yes NoticeDateProvided - No - NoticeDetails - Im not sure - NonRentArrearsDispute @secureFlexible @regression', async () => {
Expand Down Expand Up @@ -365,6 +397,7 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
// placeholder page, so need to be replaced with custom action when actual page is implemented
await performValidation('mainHeader', counterClaim.mainHeader);
await performAction('clickButton', counterClaim.saveAndContinueButton);
// Downstream flow up to 'repaymentsAgreed' page should be modified since it's Non rent arrears test case.HDPI-5732
await performAction('readPaymentInterstitial');
await performAction('repaymentsMade', {
question: repaymentsMade.mainHeader,
Expand All @@ -375,7 +408,16 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
repaymentAgreedOption: repaymentsAgreed.yesRadioOption,
repaymentAgreedInfo: repaymentsAgreed.detailsTextInput,
});
await performValidation('mainHeader', situationInterstitialScreen.mainHeader);
await performAction('readYourHouseholdAndCircumstances');
await performAction('doYouHaveAnyDependantChildren', {
dependantChildrenOption: doYouHaveAnyDependantChildren.yesRadioOption,
dependantChildrenInfo: doYouHaveAnyDependantChildren.detailsTextInput,
});
await performAction('doYouHaveAnyOtherDependants', {
otherDependantsOption: doYouHaveAnyOtherDependants.yesRadioOption,
otherDependantsInfo: doYouHaveAnyOtherDependants.detailsTextInput,
});
await performValidation('mainHeader', doAnyOtherAdultsLiveInYourHome.mainHeader);
});

test('England - Flexible - NonRentArrears - NoticeServed - No NoticeDateProvided - No - NonRentArrearsDispute @secureFlexible @regression', async () => {
Expand Down Expand Up @@ -411,9 +453,31 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
tenancyTypeInfo: tenancyTypeDetails.giveCorrectTenancyTypeTextInput,
});
await performAction('enterTenancyStartDetailsUnKnown');
await performValidation('mainHeader', nonRentArrearsDispute.mainHeader);
await performAction('disputingOtherPartsOfTheClaim', {
disputeOption: nonRentArrearsDispute.noRadioOption,
});
// placeholder page, so need to be replaced with custom action when actual page is implemented
await performValidation('mainHeader', counterClaim.mainHeader);
await performAction('clickButton', counterClaim.saveAndContinueButton);
// Downstream flow up to 'repaymentsAgreed' page should be modified since it's Non rent arrears test case.HDPI-5732
await performAction('readPaymentInterstitial');
await performAction('repaymentsMade', {
repaymentOption: repaymentsMade.noRadioOption,
});
await performAction('repaymentsAgreed', {
repaymentAgreedOption: repaymentsAgreed.amNotSureRadioOption,
});
await performAction('readYourHouseholdAndCircumstances');
await performAction('doYouHaveAnyDependantChildren', {
dependantChildrenOption: doYouHaveAnyDependantChildren.yesRadioOption,
dependantChildrenInfo: doYouHaveAnyDependantChildren.detailsTextInput,
});
await performAction('doYouHaveAnyOtherDependants', {
otherDependantsOption: doYouHaveAnyOtherDependants.yesRadioOption,
otherDependantsInfo: doYouHaveAnyOtherDependants.detailsTextInput,
});
await performValidation('mainHeader', doAnyOtherAdultsLiveInYourHome.mainHeader);
});

test('RentArrears - Introductory - NoticeServed - Yes and NoticeDateProvided - No - NoticeDetails- Yes - Notice date unknown @regression', async () => {
Expand Down Expand Up @@ -467,7 +531,16 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
repaymentAgreedOption: repaymentsAgreed.yesRadioOption,
repaymentAgreedInfo: repaymentsAgreed.detailsTextInput,
});
await performValidation('mainHeader', situationInterstitialScreen.mainHeader);
await performAction('readYourHouseholdAndCircumstances');
await performAction('doYouHaveAnyDependantChildren', {
dependantChildrenOption: doYouHaveAnyDependantChildren.yesRadioOption,
dependantChildrenInfo: doYouHaveAnyDependantChildren.detailsTextInput,
});
await performAction('doYouHaveAnyOtherDependants', {
otherDependantsOption: doYouHaveAnyOtherDependants.yesRadioOption,
otherDependantsInfo: doYouHaveAnyOtherDependants.detailsTextInput,
});
await performValidation('mainHeader', doAnyOtherAdultsLiveInYourHome.mainHeader);
});

test('RentArrears - Demoted - NoticeServed - Yes and NoticeDateProvided - Yes - NoticeDetails- Yes - Notice date known @regression', async () => {
Expand Down Expand Up @@ -522,7 +595,14 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
await performAction('repaymentsAgreed', {
repaymentAgreedOption: repaymentsAgreed.amNotSureRadioOption,
});
await performValidation('mainHeader', situationInterstitialScreen.mainHeader);
await performAction('readYourHouseholdAndCircumstances');
await performAction('doYouHaveAnyDependantChildren', {
dependantChildrenOption: doYouHaveAnyDependantChildren.noRadioOption,
});
await performAction('doYouHaveAnyOtherDependants', {
otherDependantsOption: doYouHaveAnyOtherDependants.noRadioOption,
});
await performValidation('mainHeader', doAnyOtherAdultsLiveInYourHome.mainHeader);
});

test('RentArrears - Demoted - NoticeServed - Yes - NoticeDateProvided - Yes NoticeDetails - No - RentArrearsDispute @regression', async () => {
Expand Down Expand Up @@ -575,6 +655,17 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
repaymentAgreedOption: repaymentsAgreed.noRadioOption,
});
await performValidation('mainHeader', installmentPayments.mainHeader);
await performAction('clickButton', installmentPayments.saveAndContinueButton);
await performAction('readYourHouseholdAndCircumstances');
await performAction('doYouHaveAnyDependantChildren', {
dependantChildrenOption: doYouHaveAnyDependantChildren.yesRadioOption,
dependantChildrenInfo: doYouHaveAnyDependantChildren.detailsTextInput,
});
await performAction('doYouHaveAnyOtherDependants', {
otherDependantsOption: doYouHaveAnyOtherDependants.yesRadioOption,
otherDependantsInfo: doYouHaveAnyOtherDependants.detailsTextInput,
});
await performValidation('mainHeader', doAnyOtherAdultsLiveInYourHome.mainHeader);
});

test('England - RentArrears - NonRentArrears - NoticeServed - No - RentArrearsDispute @rentNonRent @regression', async () => {
Expand Down Expand Up @@ -630,5 +721,15 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
repaymentAgreedOption: repaymentsAgreed.noRadioOption,
});
await performValidation('mainHeader', installmentPayments.mainHeader);
await performAction('clickButton', installmentPayments.saveAndContinueButton);
await performAction('readYourHouseholdAndCircumstances');
await performAction('doYouHaveAnyDependantChildren', {
dependantChildrenOption: doYouHaveAnyDependantChildren.noRadioOption,
});
await performAction('doYouHaveAnyOtherDependants', {
otherDependantsOption: doYouHaveAnyOtherDependants.yesRadioOption,
otherDependantsInfo: doYouHaveAnyOtherDependants.detailsTextInput,
});
await performValidation('mainHeader', doAnyOtherAdultsLiveInYourHome.mainHeader);
});
});
Loading