diff --git a/src/controllers/CheckAnswersController.js b/src/controllers/CheckAnswersController.js index 38239a80..7bd5b623 100644 --- a/src/controllers/CheckAnswersController.js +++ b/src/controllers/CheckAnswersController.js @@ -110,6 +110,7 @@ class CheckAnswersController extends PageController { - Email: ${data.email}\n - Organisation ID: ${data.organisationId}\n - Organisation Name: ${data.organisationName}\n + - LPA Dashboard: - LPA Dashboard: ${config.url}organisations/${data.organisationId}\n - Dataset: ${data.dataset}\n - Documentation URL: ${data.documentationUrl}\n - Endpoint URL: ${data.endpoint}\n diff --git a/test/unit/checkAnswersController.test.js b/test/unit/checkAnswersController.test.js index e2964db6..2223dcb2 100644 --- a/test/unit/checkAnswersController.test.js +++ b/test/unit/checkAnswersController.test.js @@ -125,6 +125,7 @@ describe('CheckAnswersController', () => { const [jiraRequest, jiraRequestTypeId] = createCustomerRequest.mock.calls[0] expect(jiraRequest.description).toContain(`${config.url}check/results/existing-request-id/1`) expect(jiraRequest.description).not.toContain(`${config.url}check/results/existing-request-id/${config.jira.requestTypeId}`) + expect(jiraRequest.description).toContain(`LPA Dashboard: ${config.url}organisations/${sessionData.orgId}`) expect(jiraRequestTypeId).toBe(config.jira.requestTypeId) expect(createCustomerRequest).toHaveBeenCalledWith( expect.objectContaining({