From d278390e006845def7c10a70bbd77f38cfaa8435 Mon Sep 17 00:00:00 2001 From: Paul Gain Date: Mon, 16 Dec 2024 19:13:00 +0000 Subject: [PATCH] Fix large capital profile functional tests --- .../LargeCapitalProfile/ProfileDetailsTable.jsx | 7 +++++-- .../companies/investments/large-capital-profile-spec.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/client/modules/Companies/CompanyInvestments/LargeCapitalProfile/ProfileDetailsTable.jsx b/src/client/modules/Companies/CompanyInvestments/LargeCapitalProfile/ProfileDetailsTable.jsx index 9f0d5843f0e..1cbf8489a90 100644 --- a/src/client/modules/Companies/CompanyInvestments/LargeCapitalProfile/ProfileDetailsTable.jsx +++ b/src/client/modules/Companies/CompanyInvestments/LargeCapitalProfile/ProfileDetailsTable.jsx @@ -2,7 +2,10 @@ import React from 'react' import { SummaryTable } from '../../../../components' import { requiredCheckTypes } from './constants' -import { formatDate, DATE_FORMAT_COMPACT } from '../../../../utils/date-utils' +import { + formatDate, + DATE_FORMAT_DAY_MONTH_YEAR, +} from '../../../../utils/date-utils' const buildRequiredCheckField = ( requiredChecks, @@ -18,7 +21,7 @@ const buildRequiredCheckField = ( `\n` + `Date of most recent background checks: ${formatDate( requiredChecksConductedOn, - DATE_FORMAT_COMPACT + DATE_FORMAT_DAY_MONTH_YEAR )}` + `\n` + `Person responsible for most recent background checks: ${requiredChecksConductedBy?.name}` diff --git a/test/functional/cypress/specs/companies/investments/large-capital-profile-spec.js b/test/functional/cypress/specs/companies/investments/large-capital-profile-spec.js index 59b5d4c869f..0da1afd409b 100644 --- a/test/functional/cypress/specs/companies/investments/large-capital-profile-spec.js +++ b/test/functional/cypress/specs/companies/investments/large-capital-profile-spec.js @@ -92,7 +92,7 @@ describe('Company Investments and Large capital profile', () => { 'Investable capital': 30000, 'Investor description': 'incomplete', 'Has this investor cleared the required checks within the last 12 months?': - 'Cleared\nDate of most recent background checks: 29 04 2019\nPerson responsible for most recent background checks: Aaron Chan', + 'Cleared\nDate of most recent background checks: 29 April 2019\nPerson responsible for most recent background checks: Aaron Chan', }, }) })