diff --git a/src/e2eTest/data/page-data-figma/page-data-enforcement-figma/peopleWhoWillBeEvicted.page.data.ts b/src/e2eTest/data/page-data-figma/page-data-enforcement-figma/peopleWhoWillBeEvicted.page.data.ts index 5d00ebc6c7..3752964cbf 100644 --- a/src/e2eTest/data/page-data-figma/page-data-enforcement-figma/peopleWhoWillBeEvicted.page.data.ts +++ b/src/e2eTest/data/page-data-figma/page-data-enforcement-figma/peopleWhoWillBeEvicted.page.data.ts @@ -3,14 +3,14 @@ export const peopleWhoWillBeEvicted = { mainHeader: `The people who will be evicted`, mainHeaderWarrantOfRestitutionDynamic: `The people who will be evicted (placeholder)`, evictEveryOneQuestion: `Do you want to evict everyone at the property?`, - thisIncludeHintText:`This includes all of the defendants and anyone else living at the property`, + thisIncludeHintText: `This includes all of the defendants and anyone else living at the property`, yesRadioOption: `Yes`, noRadioOption: `No`, summarySaveApplicationLink: `I want to save this application and return to it later`, previousButton: `Previous`, continueButton: `Continue`, cancelLink: `Cancel`, - thereIsAProblemErrorMessageHeader: `There is a problem`, + thereIsAProblemErrorMessageHeader: `There is a problem`, errorValidation: `NO`,//set it to `NO` before raising a PR errorValidationType: { one: `moneyField`, two: `textField`, three: `radioOptions`, four: `checkBox`, five: `moneyFieldAndRadioOption` }, errorValidationField: { diff --git a/src/e2eTest/data/page-data-figma/page-data-enforcement-figma/peopleYouWantToEvict.page.data.ts b/src/e2eTest/data/page-data-figma/page-data-enforcement-figma/peopleYouWantToEvict.page.data.ts index ae262a6dd1..71bbe77b0a 100644 --- a/src/e2eTest/data/page-data-figma/page-data-enforcement-figma/peopleYouWantToEvict.page.data.ts +++ b/src/e2eTest/data/page-data-figma/page-data-enforcement-figma/peopleYouWantToEvict.page.data.ts @@ -1,6 +1,7 @@ export const peopleYouWantToEvict = { EnforceTheOrderCaption: `Enforce the order`, mainHeader: `The people you want to evict`, + mainHeaderWarrantOfRestitutionDynamic: `The people you want to evict (placeholder)`, whoDoYouWantToEvictQuestion: `Who do you want to evict?`, summarySaveApplicationLink: `I want to save this application and return to it later`, previousButton: `Previous`, diff --git a/src/e2eTest/tests/tests-enforcement/enforcement.warrantOfRestitution.spec.ts b/src/e2eTest/tests/tests-enforcement/enforcement.warrantOfRestitution.spec.ts index 0b3fc14c57..8312aa3678 100644 --- a/src/e2eTest/tests/tests-enforcement/enforcement.warrantOfRestitution.spec.ts +++ b/src/e2eTest/tests/tests-enforcement/enforcement.warrantOfRestitution.spec.ts @@ -14,7 +14,7 @@ import { createCaseApiData, enforceWarrantApiData, submitCaseApiData } from '@da import { defendantDetails, fieldsMap, moneyMap } from '@utils/actions/custom-actions/custom-actions-enforcement/enforcement.action'; import { caseInfo } from '@utils/actions/custom-actions/createCaseAPI.action'; import { VERY_LONG_TIMEOUT } from 'playwright.config'; -import { additionalInformation, enforcementApplication, evictionRisksPosed, livingInTheProperty, peopleWhoWillBeEvicted, peopleYouWantToEvict, propertyAccessDetails, vulnerableAdultsChildren } from '@data/page-data-figma/page-data-enforcement-figma'; +import { additionalInformation, enforcementApplication, evictionRisksPosed, livingInTheProperty, peopleYouWantToEvict, propertyAccessDetails, vulnerableAdultsChildren } from '@data/page-data-figma/page-data-enforcement-figma'; import { EnforcementCommonUtils } from '@utils/actions/element-actions/enforcementUtils.action'; test.beforeEach(async ({ page }, testInfo) => { @@ -96,7 +96,7 @@ test.describe('[Enforcement - Warrant of Restitution]', async () => { await performAction('selectApplicationType', { question: enforcementApplication.typeOfApplicationQuestion, option: enforcementApplication.warrantOfRestitutionRadioOptionDynamic, - nextPage: peopleWhoWillBeEvicted.mainHeaderWarrantOfRestitutionDynamic + nextPage: peopleYouWantToEvict.mainHeaderWarrantOfRestitutionDynamic }); await performAction('reTryOnCallBackError', peopleYouWantToEvict.continueButton, shareEvidenceWithJudge.mainHeader); await performAction('reTryOnCallBackError', shareEvidenceWithJudge.continueButton, explainHowDefendantsReturned.mainHeader); @@ -189,7 +189,7 @@ test.describe('[Enforcement - Warrant of Restitution]', async () => { await performAction('selectApplicationType', { question: enforcementApplication.typeOfApplicationQuestion, option: enforcementApplication.warrantOfRestitutionRadioOptionDynamic, - nextPage: peopleWhoWillBeEvicted.mainHeaderWarrantOfRestitutionDynamic + nextPage: peopleYouWantToEvict.mainHeaderWarrantOfRestitutionDynamic }); await performAction('reTryOnCallBackError', peopleYouWantToEvict.continueButton, shareEvidenceWithJudge.mainHeader); await performAction('reTryOnCallBackError', shareEvidenceWithJudge.continueButton, explainHowDefendantsReturned.mainHeader);