diff --git a/app/README.md b/app/README.md index 8d9eb6d36..a7e8baae9 100644 --- a/app/README.md +++ b/app/README.md @@ -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. diff --git a/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/patient_search_and_verify_workflow.cy.js b/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/patient_search_and_verify_workflow.cy.js index b5545c655..402d35791 100644 --- a/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/patient_search_and_verify_workflow.cy.js +++ b/app/cypress/e2e/0-ndr-core-tests/gp_user_workflows/patient_search_and_verify_workflow.cy.js @@ -192,4 +192,4 @@ describe('GP Workflow: Patient search and verify', () => { }, ); }); -}) +}); diff --git a/app/src/components/generic/backButton/BackButton.test.tsx b/app/src/components/generic/backButton/BackButton.test.tsx index 80d2345cb..a320cf206 100644 --- a/app/src/components/generic/backButton/BackButton.test.tsx +++ b/app/src/components/generic/backButton/BackButton.test.tsx @@ -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(); - userEvent.click( screen.getByText('Go back')); + render(); + 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(); - expect(screen.getByText('Go back')).toBeInTheDocument(); + render(); + 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(); - expect(screen.getByText('navigate to ...')).toBeInTheDocument(); + render(); + expect(screen.getByText('navigate to ...')).toBeInTheDocument(); - }); + }); }); diff --git a/app/src/pages/patientResultPage/PatientResultPage.tsx b/app/src/pages/patientResultPage/PatientResultPage.tsx index 1aba16d53..85433fc54 100644 --- a/app/src/pages/patientResultPage/PatientResultPage.tsx +++ b/app/src/pages/patientResultPage/PatientResultPage.tsx @@ -80,13 +80,13 @@ function PatientResultPage() { {isGp && ( <>

- 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.

)}