Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into PRMP-1122-SQS
Browse files Browse the repository at this point in the history
  • Loading branch information
NogaNHS committed Dec 6, 2024
2 parents 6c6d7e0 + 9e359f6 commit fd0d714
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('GP Workflow: Patient search and verify', () => {
cy.get('#nhs-number-input').type(testPatient);
cy.title().should(
'eq',
'Search for patient - Access and store digital patient documents',
'Search for a patient - Access and store digital patient documents',
);

cy.get('#search-submit').click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ describe('GP Workflow: View Lloyd George record', () => {

// cancel delete
cy.wait('@searchDocs');
cy.getByTestId('start-again-btn').click();
cy.contains('Go back').click();

// assert user is returned to view Lloyd George page
cy.contains('Lloyd George record').should('be.visible');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function DeleteResultStage({ numberOfFiles, setDownloadStage }: Props) {
</Card.Content>
</Card>
<p>You can no longer access this record using our storage.</p>
<p className="lloydgeorge_delete-complete_paragraph-headers">What happens next</p>
<h2>What happens next</h2>
<ol>
<li>
Make sure you safely store the paper version of this record, as it may be the
Expand All @@ -56,17 +56,13 @@ function DeleteResultStage({ numberOfFiles, setDownloadStage }: Props) {
If you think you’ve made a mistake, you will need to upload this record again
</li>
</ol>
<p className="lloydgeorge_delete-complete_paragraph-subheaders">
Your responsibilities after removing this record
</p>
<h3>Your responsibilities after removing this record</h3>
<p>
Everyone in a health and care organisation is responsible for managing records
appropriately. It is important all general practice staff understand their
responsibilities for creating, and disposing of records appropriately.
</p>
<p className="lloydgeorge_delete-complete_paragraph-subheaders">
Follow the Record Management Code of Practice
</p>
<h3>Follow the Record Management Code of Practice</h3>
<p>
The{' '}
<a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ describe('RemoveRecordStage', () => {
).toBeInTheDocument();
});

expect(screen.getByRole('button', { name: 'Start again' })).toBeInTheDocument();
expect(
screen.queryByRole('button', { name: 'Remove all files' }),
).not.toBeInTheDocument();
Expand All @@ -124,7 +123,6 @@ describe('RemoveRecordStage', () => {
).toBeInTheDocument();
});

expect(screen.getByRole('button', { name: 'Start again' })).toBeInTheDocument();
expect(screen.getByText(searchResults[0].fileName)).toBeInTheDocument();
expect(screen.getByText(searchResults[1].fileName)).toBeInTheDocument();
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { Dispatch, SetStateAction, useEffect, useRef, useState } from 'react';
import useTitle from '../../../../helpers/hooks/useTitle';
import { Button, Table, WarningCallout } from 'nhsuk-react-components';
import LinkButton from '../../../generic/linkButton/LinkButton';
import { SearchResult } from '../../../../types/generic/searchResult';
import getDocumentSearchResults from '../../../../helpers/requests/getDocumentSearchResults';
import usePatient from '../../../../helpers/hooks/usePatient';
Expand Down Expand Up @@ -165,17 +164,6 @@ function RemoveRecordStage({ numberOfFiles, recordType, setDownloadStage, resetD
Remove all files
</Button>
)}
<LinkButton
id="start-again-link"
data-testid="start-again-btn"
type="button"
className="mb-7 ml-3"
onClick={() => {
navigate(routes.LLOYD_GEORGE);
}}
>
Start again
</LinkButton>
</div>
)}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,13 @@ function LloydGeorgeDownloadComplete({
</ol>
</>
)}
<p className="lloydgeorge_download-complete_paragraph-headers">
Your responsibilities with this record
</p>
<h2>Your responsibilities with this record</h2>
<p>
Everyone in a health and care organisation is responsible for managing records
appropriately. It is important all general practice staff understand their
responsibilities for creating, maintaining, and disposing of records appropriately.
</p>
<p className="lloydgeorge_download-complete_paragraph-subheaders">
Follow the Record Management Code of Practice
</p>
<h3>Follow the Record Management Code of Practice</h3>
<p>
The{' '}
<a href="https://transform.england.nhs.uk/information-governance/guidance/records-management-code">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('LloydGeorgeUploadInfectedStage', () => {
});

describe('Navigation', () => {
it('navigates to search for patient page when button is clicked', () => {
it('navigates to search for a patient page when button is clicked', () => {
render(
<LloydGeorgeUploadInfectedStage
documents={[uploadDocument]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,21 @@ function LloydGeorgeViewRecordStage({

<h1>{pageHeader}</h1>
<PatientSimpleSummary />
{fullScreen ? (
<p>
To search within this record use <strong>Control</strong> and <strong>F</strong>
</p>
) : (
<p />
)}

{!fullScreen ? (
<div className="lloydgeorge_record-stage_flex">
<RecordMenuCard
recordLinks={recordLinksToShow}
setStage={setStage}
showMenu={showMenu}
/>

<div
className={`lloydgeorge_record-stage_flex-row lloydgeorge_record-stage_flex-row${menuClass}`}
>
Expand Down
4 changes: 4 additions & 0 deletions app/src/components/generic/recordCard/RecordCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ function RecordCard({
View in full screen
</button>
)}
<p>
To search within this record use <strong>Control</strong> and{' '}
<strong>F</strong>
</p>
</Card.Content>
<div>{children}</div>
</Card>
Expand Down
2 changes: 1 addition & 1 deletion app/src/pages/patientSearchPage/PatientSearchPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('PatientSearchPage', () => {
mockedUseRole.mockReturnValue(role);

renderPatientSearchPage();
expect(screen.getByText('Search for patient')).toBeInTheDocument();
expect(screen.getByText('Search for a patient')).toBeInTheDocument();
expect(
screen.getByRole('textbox', { name: 'Enter NHS number' }),
).toBeInTheDocument();
Expand Down
2 changes: 1 addition & 1 deletion app/src/pages/patientSearchPage/PatientSearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function PatientSearchPage() {
setSubmissionState(SEARCH_STATES.SUCCEEDED);
navigate(routes.VERIFY_PATIENT);
};
const pageTitle = 'Search for patient';
const pageTitle = 'Search for a patient';
useTitle({ pageTitle: pageTitle });

const handleSearch = async (data: FieldValues) => {
Expand Down

0 comments on commit fd0d714

Please sign in to comment.