Skip to content

Commit

Permalink
changes search for patient text to search for a patient (#475)
Browse files Browse the repository at this point in the history
Co-authored-by: Jack Sutton <jack.sutton@madetech.com>
  • Loading branch information
jack-nhs and SuttonMashing authored Dec 6, 2024
1 parent baf8983 commit c2f1a6b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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 @@ -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
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 c2f1a6b

Please sign in to comment.