Skip to content

Commit

Permalink
CLS2-1277 Adding address to investment project requirements section
Browse files Browse the repository at this point in the history
  • Loading branch information
stuart-mindt committed Feb 19, 2025
1 parent c8e97b6 commit de61b9b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/client/modules/Investments/Projects/Details/ProjectDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,29 @@ const ProjectDetails = ({ currentAdviserId }) => {
)
}
/>
<SummaryTable.TextRow
heading="UK location (site address)"
value={
project.address1 ? (
<>
{project.address1} <br />
{project.address2 && (
<>
{project.address2} <br />
</>
)}
{project.addressTown && (
<>
{project.addressTown} <br />
</>
)}
{project.addressPostcode}
</>
) : (
'Not set'
)
}
/>
{project.deliveryPartners &&
project.deliveryPartners.length > 0 && (
<SummaryTable.TextRow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ describe('Investment project details', () => {
'Possible UK locations': 'North East',
'UK regions landed': 'North East',
'UK recipient company': 'Mercury LtdEdit companyRemove company',
'UK location (site address)': '10 Eastings Road London W1 2AA',
'Delivery partners': 'New Anglia LEP, North Eastern LEP',
},
})
Expand Down Expand Up @@ -289,6 +290,7 @@ describe('Investment project details', () => {
dataTest: 'project-requirements-table',
content: {
'UK recipient company': 'Find company',
'UK location (site address)': 'Not set',
},
})
cy.get('[data-test="find-company-link"]')
Expand Down

0 comments on commit de61b9b

Please sign in to comment.