Skip to content

Commit

Permalink
fixed breaking test, space is reuqired for first and middle name
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Alexander committed Nov 27, 2023
1 parent 480de0a commit 45f5f17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('PCSE Workflow: Access and download found files', () => {
cy.get('#patient-summary-family-name').should('have.text', patient.familyName);

const givenName = patient.givenName[0];
cy.get('#patient-summary-given-name').should('have.text', givenName);
cy.get('#patient-summary-given-name').should('have.text', givenName + ' ');
cy.get('#patient-summary-date-of-birth').should(
'have.text',
patient.birthDate.toLocaleDateString('en-GB', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const PatientSummary = ({ patientDetails }: Props) => {
<SummaryList.Row>
<SummaryList.Key>First name</SummaryList.Key>
<SummaryList.Value id="patient-summary-given-name">
{patientDetails?.givenName?.map((name) => `${name}`)}
{patientDetails?.givenName?.map((name) => `${name} `)}
</SummaryList.Value>
</SummaryList.Row>
<SummaryList.Row>
Expand Down

0 comments on commit 45f5f17

Please sign in to comment.