Skip to content

Commit

Permalink
for pr
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-start-nhs committed Dec 16, 2024
1 parent ee2ce2c commit 67537f9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The National Document Repository user interface (UI) has been developed with Rea

### 1. Set Env Variables

Create a `.env` file by duplicating [.env.template](.env.template) and adding any missing values. This file is sourced to
In the app/ directory create a `.env` file by duplicating [.env.template](.env.template) and adding any missing values. This file is sourced to
your shell env so make sure it doesn't have any extra whitespace, comments etc.
The `local` environment variable will allow your local app to bypass auth and mock most lambda requests.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,4 @@ describe('GP Workflow: Patient search and verify', () => {
},
);
});
})
});
30 changes: 15 additions & 15 deletions app/src/components/generic/backButton/BackButton.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,29 @@ describe('BackButton', () => {
});
});

it('navigates to specified location when the "toLocation" property is defined' , async () => {
it('navigates to specified location when the "toLocation" property is defined' , async () => {

render(<BackButton toLocation="/specified-location" />);
userEvent.click( screen.getByText('Go back'));
render(<BackButton toLocation="/specified-location" />);
userEvent.click( screen.getByText('Go back'));

await waitFor(() => {
expect(mockUseNavigate).toHaveBeenCalledWith('/specified-location');
});
await waitFor(() => {
expect(mockUseNavigate).toHaveBeenCalledWith('/specified-location');
});

});
});

it('displays default back link text when "backLinkText" is not provided', async () => {
it('displays default back link text when "backLinkText" is not provided', async () => {

render(<BackButton toLocation="/specified-location" />);
expect(screen.getByText('Go back')).toBeInTheDocument();
render(<BackButton toLocation="/specified-location" />);
expect(screen.getByText('Go back')).toBeInTheDocument();

});
});

it('displays custom back link text when "backLinkText" is defined', async () => {
it('displays custom back link text when "backLinkText" is defined', async () => {

render(<BackButton backLinkText="navigate to ..." />);
expect(screen.getByText('navigate to ...')).toBeInTheDocument();
render(<BackButton backLinkText="navigate to ..." />);
expect(screen.getByText('navigate to ...')).toBeInTheDocument();

});
});

});
6 changes: 3 additions & 3 deletions app/src/pages/patientResultPage/PatientResultPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ function PatientResultPage() {
{isGp && (
<>
<p id="gp-message">
This page displays the current data recorded in the Patient Demographic Service
for this patient.
This page displays the current data recorded in the Patient Demographic Service
for this patient.
</p>
</>
)}
<Button type="submit" id="verify-submit" className="nhsuk-u-margin-top-6">
Confirm patient details and continue
Confirm patient details and continue
</Button>
</form>
</div>
Expand Down

0 comments on commit 67537f9

Please sign in to comment.