Skip to content
Open
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 @@ -105,7 +105,7 @@ describe('ReviewDetailsCompletePage', () => {
);

expect(
screen.getByRole('button', { name: 'Go to Documents to Review' }),
screen.getByRole('button', { name: 'Go to documents to review' }),
).toBeInTheDocument();
});
});
Expand Down Expand Up @@ -579,7 +579,7 @@ describe('ReviewDetailsCompletePage', () => {
/>,
);

const button = screen.getByRole('button', { name: 'Go to Documents to Review' });
const button = screen.getByRole('button', { name: 'Go to documents to review' });
await user.click(button);

expect(mockSetPatientDetails).toHaveBeenCalledWith(null);
Expand All @@ -596,7 +596,7 @@ describe('ReviewDetailsCompletePage', () => {
/>,
);

const button = screen.getByRole('button', { name: 'Go to Documents to Review' });
const button = screen.getByRole('button', { name: 'Go to documents to review' });
await user.click(button);

expect(mockNavigate).toHaveBeenCalledWith(routeChildren.ADMIN_REVIEW, {
Expand All @@ -615,7 +615,7 @@ describe('ReviewDetailsCompletePage', () => {
/>,
);

const button = screen.getByRole('button', { name: 'Go to Documents to Review' });
const button = screen.getByRole('button', { name: 'Go to documents to review' });
await user.click(button);

expect(mockSetPatientDetails).toHaveBeenCalledBefore(mockNavigate as Mock);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,17 @@ const ReviewDetailsCompleteStage = ({

const getDefaultPrmEmailSupportMessage = (): JSX.Element => {
return (
<p>
If you think you've made a mistake, contact the Patient Record Management team at{' '}
<a href="mailto:england.prmteam@nhs.net">england.prmteam@nhs.net</a>.
</p>
<>
<p>
This document has been matched to the patient whose NHS number you entered. If
this patient is registered at your practice, you will see this document on the
list of documents to review again.
</p>
<p>
If you think you've made a mistake, contact the Patient Record Management team
at <a href="mailto:england.prmteam@nhs.net">england.prmteam@nhs.net</a>.
</p>
</>
);
};

Expand All @@ -133,16 +140,6 @@ const ReviewDetailsCompleteStage = ({
};

const getPanelBody = (): JSX.Element => {
if (completeState === CompleteState.PATIENT_MATCHED) {
return (
<p>
This document has been matched to the patient whose NHS number you entered. If
this patient is registered at your practice, you will see this document on the
list of documents to review again.
</p>
);
}

if (completeState === CompleteState.PATIENT_UNKNOWN) {
return (
<p>
Expand Down Expand Up @@ -272,7 +269,7 @@ const ReviewDetailsCompleteStage = ({
{getBody()}

<Button data-testid="review-another-btn" type="button" onClick={OnComplete}>
Go to Documents to Review
Go to documents to review
</Button>
</div>
);
Expand Down
Loading