Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
e16359a
WIP
Gautham059 Mar 30, 2026
7455a9e
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Mar 30, 2026
0d3c498
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Mar 31, 2026
78eb960
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Mar 31, 2026
4c8b1bd
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Mar 31, 2026
d125f03
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 2, 2026
ab82699
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 2, 2026
114df6a
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 7, 2026
cfb041e
Visibility validation added
Gautham059 Apr 8, 2026
bc79663
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 8, 2026
23e6128
button reference updated
Gautham059 Apr 8, 2026
df72a83
created a story for noRentArrearsNavigationTests
Gautham059 Apr 9, 2026
7686ce4
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 9, 2026
8efe78d
Updated trigger logic
Gautham059 Apr 9, 2026
d190236
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 10, 2026
a7764f2
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 10, 2026
cdb0b56
defendant dob name changed
Gautham059 Apr 10, 2026
2d09451
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 10, 2026
9638ea0
wip
Gautham059 Apr 10, 2026
a5d52e5
removed comment
Gautham059 Apr 10, 2026
5d79b0e
Updated tests
Gautham059 Apr 10, 2026
0d85fc9
Updated ref
Gautham059 Apr 13, 2026
8f47e15
Removed locator
Gautham059 Apr 13, 2026
0348a36
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 13, 2026
2b86cdd
syntax fixed
Gautham059 Apr 13, 2026
4f86a39
Merge remote-tracking branch 'origin/HDPI-5340-hidden-elements-2' int…
Gautham059 Apr 13, 2026
1c63e0f
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 13, 2026
d085065
syntax fixed
Gautham059 Apr 13, 2026
b32705d
skipping other tests
Gautham059 Apr 13, 2026
4d04304
Updated date
Gautham059 Apr 13, 2026
d4ffb9d
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 14, 2026
04720b0
Updated locator
Gautham059 Apr 14, 2026
fcb7a5e
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 14, 2026
fb9bba7
Unskipped tests
Gautham059 Apr 14, 2026
1fcf74a
Merge remote-tracking branch 'origin/HDPI-5340-hidden-elements-2' int…
Gautham059 Apr 14, 2026
e46ecf4
Unskipped tests
Gautham059 Apr 14, 2026
a615835
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 14, 2026
8622545
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 14, 2026
2594eed
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 15, 2026
c81c85b
Updated data
Gautham059 Apr 15, 2026
5d49aae
Skipping the failures temporarily
Gautham059 Apr 15, 2026
12239c8
Merge branch 'master' into HDPI-5340-hidden-elements-2
Gautham059 Apr 15, 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
3 changes: 3 additions & 0 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ withPipeline(type, product, component) {
if (githubApi.getLabelsbyPattern(env.BRANCH_NAME, "enable_content_validation").size() > 0) {
env.ENABLE_CONTENT_VALIDATION = 'true'
}
if (githubApi.getLabelsbyPattern(env.BRANCH_NAME, "enable_visibility_validation").size() > 0) {
env.ENABLE_VISIBILITY_VALIDATION = 'true'
}
if (githubApi.getLabelsbyPattern(env.BRANCH_NAME, "enable_error_messages_validation").size() > 0) {
env.ENABLE_ERROR_MESSAGES_VALIDATION = 'true'
}
Expand Down
2 changes: 2 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ export const waitForPageRedirectionTimeout = SHORT_TIMEOUT;
const enable_all_page_functional_tests = process.env.ENABLE_ALL_PAGE_FUNCTIONAL_TESTS || 'false';
if (enable_all_page_functional_tests.toLowerCase() === 'true') {
process.env.ENABLE_CONTENT_VALIDATION = 'true';
process.env.ENABLE_VISIBILITY_VALIDATION = 'true';
process.env.ENABLE_ERROR_MESSAGES_VALIDATION = 'true';
process.env.ENABLE_NAVIGATION_TESTS = 'true';
}

export const enable_content_validation = process.env.ENABLE_CONTENT_VALIDATION || 'false';
export const enable_visibility_validation = process.env.ENABLE_VISIBILITY_VALIDATION || 'false';
export const enable_error_message_validation = process.env.ENABLE_ERROR_MESSAGES_VALIDATION || 'false';
export const enable_navigation_tests = process.env.ENABLE_NAVIGATION_TESTS || 'false';
export const enable_axe_audit = process.env.ENABLE_AXE_AUDIT || 'true';
Expand Down
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 @@ -5,7 +5,7 @@ export default {
'page-not-found': 'pageNotFound',
'defendant-name-capture': 'defendantNameCapture',
'defendant-name-confirmation': 'defendantNameConfirmation',
'date-of-birth': 'dateOfBirth',
'defendant-date-of-birth': 'defendantDateOfBirth',
'contact-preferences-telephone': 'contactPreferencesTelephone',
'contact-preferences-text-message': 'contactPreferencesTextMessage',
'dispute-claim-interstitial': 'disputeClaimInterstitial',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function getRandomDateOfBirth() {

const randomDOB = getRandomDateOfBirth();

export const dateOfBirth = {
export const defendantDateOfBirth = {
mainHeader: `What’s your date of birth? (Optional)`,
respondToClaimParagraph: `Respond to a property possession claim`,
forExampleParagraph: `For example, 27 9 2022`,
forExampleParagraph: `For example, 31 3 1980`,
dayTextLabel: `Day`,
monthTextLabel: `Month`,
yearTextLabel: `Year`,
Expand All @@ -26,5 +26,5 @@ export const dateOfBirth = {
saveAndContinueButton: `Save and continue`,
saveForLaterButton: `Save for later`,
feedbackLink: `feedback (opens in new tab)`,
pageSlug: `date-of-birth`,
pageSlug: `defendant-date-of-birth`,
};
Comment thread
SameenaHMCTS marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const exceptionalHardship = {
lostJobOrBeenMadeRedundantList: `lost your job or been made redundant`,
experiencedBereavementOrLongTermIllnessList: `experienced a bereavement or long-term illness`,
beenDeclaredBankruptList: `been declared bankrupt`,
wouldYouExperienceExceptionalHardshipParagraph: `Would you experience exceptional hardship if you had to leave your home?`,
wouldYouExperienceExceptionalHardshipParagraph: `Would you experience exceptional hardship if you were asked to leave your home?`,
detailsTextInput: `mention Exceptional hardship here`,
saveAndContinueButton: `Save and continue`,
saveForLaterButton: `Save for later`,
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 @@ -3,7 +3,7 @@ export * from './startNow.page.data';
export * from './disputeClaimInterstitial.page.data';
export * from './freeLegalAdvice.page.data';
export * from './defendantNameCapture.page.data';
export * from './dateOfBirth.page.data';
export * from './defendantDateOfBirth.page.data';
export * from './correspondenceAddress.page.data';
export * from './tenancyTypeDetails.page.data';
export * from './landlordRegistered.page.data';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import { generateRandomString } from '../../utils/common/string.utils';
export const nonRentArrearsDispute = {
mainHeader: `Disputing other parts of the claim`,
partOfClaimParagraph: `You should`,
toSeeIfParagraph: `to see if there’s any other parts of the claim that are incorrect or you disagree with.`,
// Need to fix this as part of HDPI-5786
//toSeeIfParagraph: `to see if there’s any other parts of the claim that are incorrect or you disagree with.`,
viewTheClaimLink: `view the claim (opens in new tab)`,
titleGovServiceHiddenNewTab: `GOV.UK - The best place to find government services and information`,
thisIncludesParagraph: `This includes:`,
groundsForPossessionList: `${process.env.CLAIMANT_NAME}’s grounds for possession (their reasons for making the claim)`,
anyDocumentsList: `any documents they’ve uploaded to support their claim`,
anyOtherList: `any other information they’ve given as part of their claim`,
// Need to fix this as part of HDPI-5786
//anyDocumentsList: `any documents they’ve uploaded to support their claim`,
//anyOtherList: `any other information they’ve given as part of their claim`,
doYouWantToDisputeQuestion: `Do you want to dispute any other parts of the claim?`,
explainPartOfClaimHiddenTextLabel: `Explain which parts of the claim you do not agree with`,
explainClaimTextInput: `Example - Do not agree with claim 1`,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { submitCaseApiData } from '../api-data';
// import { submitCaseApiData } from '../api-data';

export const noticeDateWhenNotProvided = {
mainHeader: `Notice date`,
respondToAPropertyPossessionParagraph: `Respond to a property possession claim`,
backLink: `Back`,
didNotProvideNoticeLabel: `${submitCaseApiData.submitCasePayloadNoDefendants.overriddenClaimantName} did not provide the date they served you notice.`,
//Need to fix this as part of HDPI-5786
//didNotProvideNoticeLabel: `${submitCaseApiData.submitCasePayloadNoDefendants.overriddenClaimantName} did not provide the date they served you notice.`,
getWhenDidYouReceiveNoticeQuestion: (claimantsName: string) =>
`When did you receive notice from ${claimantsName} (optional)?`,
exampleHintText: `For example, 27 9 2022. If you’re not sure of the exact date, you can find it on the notice`,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { submitCaseApiData } from '../api-data';
import { submitCaseApiDataWales } from '../api-data/submitCaseWales.api.data';

export const tenancyDateDetails = {
mainHeader: `Tenancy, occupation contract or licence start date`,
respondToAPropertyPossessionParagraph: `Respond to a property possession claim`,
getDetailsGivenByParagraph: (claimantName: string): string => {
return `Details given by ${claimantName}:`;
},
yourTenancyOccupationContractOrLicenceDateList: `Your tenancy, occupation contract or licence began on ${convertDateFormatTenancyDate(submitCaseApiData.submitCasePayload.tenancy_TenancyLicenceDate)}`,
yourTenancyOccupationContractOrLicenceDateList: `Your tenancy, occupation contract or licence began on ${process.env.WALES_POSTCODE === 'YES' ? convertDateFormatTenancyDate(submitCaseApiDataWales.submitCasePayload.licenceStartDate) : convertDateFormatTenancyDate(submitCaseApiData.submitCasePayload.tenancy_TenancyLicenceDate)}`,
isTheTenancyLicenceOrOccupationContractQuestion: `Is the tenancy, licence or occupation contract start date correct?`,
backLink: `Back`,
yesRadioOption: `Yes`,
Expand Down
50 changes: 25 additions & 25 deletions src/test/ui/e2eTest/respondToAClaim.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
contactPreferencesTextMessage,
correspondenceAddress,
counterClaim,
dateOfBirth,
defendantDateOfBirth,
defendantNameCapture,
defendantNameConfirmation,
doAnyOtherAdultsLiveInYourHome,
Expand Down Expand Up @@ -174,9 +174,9 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
lName: defendantNameCapture.lastNameTextInput,
});
await performAction('enterDateOfBirthDetails', {
dobDay: dateOfBirth.dayInputText,
dobMonth: dateOfBirth.monthInputText,
dobYear: dateOfBirth.yearInputText,
dobDay: defendantDateOfBirth.dayInputText,
dobMonth: defendantDateOfBirth.monthInputText,
dobYear: defendantDateOfBirth.yearInputText,
});
await performAction('selectCorrespondenceAddressUnKnown', {
addressLine1: correspondenceAddress.walesAddressLine1TextInput,
Expand Down Expand Up @@ -264,9 +264,9 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
lName: defendantNameCapture.lastNameTextInput,
});
await performAction('enterDateOfBirthDetails', {
dobDay: dateOfBirth.dayInputText,
dobMonth: dateOfBirth.monthInputText,
dobYear: dateOfBirth.yearInputText,
dobDay: defendantDateOfBirth.dayInputText,
dobMonth: defendantDateOfBirth.monthInputText,
dobYear: defendantDateOfBirth.yearInputText,
});
await performAction('selectCorrespondenceAddressUnKnown', {
addressLine1: correspondenceAddress.walesAddressLine1TextInput,
Expand Down Expand Up @@ -428,9 +428,9 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
lName: defendantNameCapture.lastNameTextInput,
});
await performAction('enterDateOfBirthDetails', {
dobDay: dateOfBirth.dayInputText,
dobMonth: dateOfBirth.monthInputText,
dobYear: dateOfBirth.yearInputText,
dobDay: defendantDateOfBirth.dayInputText,
dobMonth: defendantDateOfBirth.monthInputText,
dobYear: defendantDateOfBirth.yearInputText,
});
await performAction('selectCorrespondenceAddressUnKnown', {
addressLine1: correspondenceAddress.walesAddressLine1TextInput,
Expand Down Expand Up @@ -511,9 +511,9 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
lName: defendantNameCapture.lastNameTextInput,
});
await performAction('enterDateOfBirthDetails', {
dobDay: dateOfBirth.dayInputText,
dobMonth: dateOfBirth.monthInputText,
dobYear: dateOfBirth.yearInputText,
dobDay: defendantDateOfBirth.dayInputText,
dobMonth: defendantDateOfBirth.monthInputText,
dobYear: defendantDateOfBirth.yearInputText,
});
await performAction('selectCorrespondenceAddressUnKnown', {
addressLine1: correspondenceAddress.walesAddressLine1TextInput,
Expand Down Expand Up @@ -590,9 +590,9 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
lName: defendantNameConfirmation.lastNameInputText,
});
await performAction('enterDateOfBirthDetails', {
dobDay: dateOfBirth.dayInputText,
dobMonth: dateOfBirth.monthInputText,
dobYear: dateOfBirth.yearInputText,
dobDay: defendantDateOfBirth.dayInputText,
dobMonth: defendantDateOfBirth.monthInputText,
dobYear: defendantDateOfBirth.yearInputText,
});
await performAction('selectCorrespondenceAddressKnown', {
radioOption: correspondenceAddress.yesRadioOption,
Expand Down Expand Up @@ -666,9 +666,9 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
option: defendantNameConfirmation.yesRadioOption,
});
await performAction('enterDateOfBirthDetails', {
dobDay: dateOfBirth.dayInputText,
dobMonth: dateOfBirth.monthInputText,
dobYear: dateOfBirth.yearInputText,
dobDay: defendantDateOfBirth.dayInputText,
dobMonth: defendantDateOfBirth.monthInputText,
dobYear: defendantDateOfBirth.yearInputText,
});
await performAction('selectCorrespondenceAddressKnown', {
radioOption: correspondenceAddress.yesRadioOption,
Expand Down Expand Up @@ -748,9 +748,9 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
option: defendantNameConfirmation.yesRadioOption,
});
await performAction('enterDateOfBirthDetails', {
dobDay: dateOfBirth.dayInputText,
dobMonth: dateOfBirth.monthInputText,
dobYear: dateOfBirth.yearInputText,
dobDay: defendantDateOfBirth.dayInputText,
dobMonth: defendantDateOfBirth.monthInputText,
dobYear: defendantDateOfBirth.yearInputText,
});
await performAction('selectCorrespondenceAddressKnown', {
radioOption: correspondenceAddress.yesRadioOption,
Expand Down Expand Up @@ -834,9 +834,9 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
option: defendantNameConfirmation.yesRadioOption,
});
await performAction('enterDateOfBirthDetails', {
dobDay: dateOfBirth.dayInputText,
dobMonth: dateOfBirth.monthInputText,
dobYear: dateOfBirth.yearInputText,
dobDay: defendantDateOfBirth.dayInputText,
dobMonth: defendantDateOfBirth.monthInputText,
dobYear: defendantDateOfBirth.yearInputText,
});
await performAction('selectCorrespondenceAddressKnown', {
radioOption: correspondenceAddress.yesRadioOption,
Expand Down
12 changes: 7 additions & 5 deletions src/test/ui/e2eTest/respondToClaimWales.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
contactPreferencesTextMessage,
correspondenceAddress,
counterClaim,
dateOfBirth,
defendantDateOfBirth,
defendantNameCapture,
doAnyOtherAdultsLiveInYourHome,
doYouHaveAnyDependantChildren,
Expand All @@ -32,11 +32,13 @@ import {
import { finaliseAllValidations, initializeExecutor, performAction, performValidation } from '../utils/controller';

const home_url = config.get('e2e.testUrl') as string;
let claimantName: string;

test.beforeEach(async ({ page }) => {
initializeExecutor(page);
process.env.WALES_POSTCODE = 'YES';
process.env.CLAIMANT_NAME = submitCaseApiDataWales.submitCasePayload.claimantName;
claimantName = process.env.CLAIMANT_NAME;
await performAction('createCaseAPI', { data: createCaseApiWalesData.createCasePayload });
await performAction('submitCaseAPI', { data: submitCaseApiDataWales.submitCasePayload });
await performAction('fetchPINsAPI');
Expand All @@ -60,9 +62,9 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
lName: defendantNameCapture.lastNameTextInput,
});
await performAction('enterDateOfBirthDetails', {
dobDay: dateOfBirth.dayInputText,
dobMonth: dateOfBirth.monthInputText,
dobYear: dateOfBirth.yearInputText,
dobDay: defendantDateOfBirth.dayInputText,
dobMonth: defendantDateOfBirth.monthInputText,
dobYear: defendantDateOfBirth.yearInputText,
});
await performAction('selectCorrespondenceAddressUnKnown', {
addressLine1: correspondenceAddress.walesAddressLine1TextInput,
Expand Down Expand Up @@ -108,7 +110,7 @@ test.describe('Respond to a claim - e2e Journey @nightly', async () => {
await performAction('clickButton', counterClaim.saveAndContinueButton);
await performAction('readPaymentInterstitial');
await performAction('repaymentsMade', {
question: repaymentsMade.mainHeader,
question: repaymentsMade.getmainHeader(claimantName),
repaymentOption: repaymentsMade.noRadioOption,
});
await performAction('repaymentsAgreed', {
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/functional/correspondenceAddress.pft.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { correspondenceAddress, dashboard, dateOfBirth } from '../data/page-data';
import { correspondenceAddress, dashboard, defendantDateOfBirth } from '../data/page-data';
import { performAction, performValidation, performValidations } from '../utils/controller';

export async function correspondenceAddressErrorValidation(): Promise<void> {
Expand Down Expand Up @@ -82,7 +82,7 @@ export async function correspondenceAddressErrorValidation(): Promise<void> {
}

export async function correspondenceAddressNavigationTests(): Promise<void> {
await performValidation('pageNavigation', correspondenceAddress.backLink, dateOfBirth.mainHeader);
await performValidation('pageNavigation', correspondenceAddress.backLink, defendantDateOfBirth.mainHeader);
await performAction('clickRadioButton', correspondenceAddress.yesRadioOption);
await performValidation('pageNavigation', correspondenceAddress.saveForLaterButton, dashboard.mainHeader);
}
8 changes: 4 additions & 4 deletions src/test/ui/functional/correspondenceAddress.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createCaseApiData, submitCaseApiData } from '../data/api-data';
import {
correspondenceAddress,
dashboard,
dateOfBirth,
defendantDateOfBirth,
defendantNameConfirmation,
freeLegalAdvice,
startNow,
Expand Down Expand Up @@ -49,9 +49,9 @@ test.describe('Correspondence Address - functional test @nightly', async () => {
option: defendantNameConfirmation.yesRadioOption,
});
await performAction('enterDateOfBirthDetails', {
dobDay: dateOfBirth.dayInputText,
dobMonth: dateOfBirth.monthInputText,
dobYear: dateOfBirth.yearInputText,
dobDay: defendantDateOfBirth.dayInputText,
dobMonth: defendantDateOfBirth.monthInputText,
dobYear: defendantDateOfBirth.yearInputText,
});
await performAction('clickButton', correspondenceAddress.saveAndContinueButton);
await performAction('inputErrorValidation', {
Expand Down
11 changes: 0 additions & 11 deletions src/test/ui/functional/dateOfBirth.pft.ts

This file was deleted.

12 changes: 12 additions & 0 deletions src/test/ui/functional/defendantDateOfBirth.pft.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { dashboard, defendantDateOfBirth, feedback } from '../data/page-data';
import { performValidation } from '../utils/controller';

export async function defendantDateOfBirthNavigationTests(): Promise<void> {
await performValidation('pageNavigation', defendantDateOfBirth.feedbackLink, {
element: feedback.tellUsWhatYouThinkParagraph,
pageSlug: defendantDateOfBirth.pageSlug,
});
//This has to be fixed as it depends on the test case journey HDPI-5786
// await performValidation('pageNavigation', defendantDateOfBirth.backLink, defendantNameCapture.mainHeader);
await performValidation('pageNavigation', defendantDateOfBirth.saveForLaterButton, dashboard.mainHeader);
}
Loading
Loading