Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLS2-1277 Adding address to investment project requirements section #7570

Merged
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
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