Skip to content

Commit

Permalink
Merge pull request #16 from DEFRA/DSFAAP-464-start-page-updates
Browse files Browse the repository at this point in the history
DSFAAP-464: update the start page to match the prototype
  • Loading branch information
joseluisgraa authored Nov 19, 2024
2 parents 42299a3 + a98c933 commit 328e971
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/server/home/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
export const homeController = {
handler(_request, h) {
return h.view('home/index', {
pageTitle: 'Apply for an animal disease movement licence',
heading: 'Apply for an animal disease movement licence'
pageTitle: 'Apply for a Bovine Tuberculosis (TB) movement licence',
heading: 'Apply for a Bovine Tuberculosis (TB) movement licence'
})
}
}
Expand Down
8 changes: 5 additions & 3 deletions src/server/home/controller.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createServer } from '~/src/server/index.js'
import { statusCodes } from '~/src/server/common/constants/status-codes.js'
import { parseDocument } from '~/src/server/common/test-helpers/dom.js'

describe('#homeController', () => {
/** @type {Server} */
Expand All @@ -15,14 +16,15 @@ describe('#homeController', () => {
})

test('Should provide expected response', async () => {
const { result, statusCode } = await server.inject({
const { payload, statusCode } = await server.inject({
method: 'GET',
url: '/'
})

expect(result).toEqual(
expect.stringContaining('Apply for an animal disease movement licence')
expect(parseDocument(payload).title).toBe(
'Apply for a Bovine Tuberculosis (TB) movement licence'
)

expect(statusCode).toBe(statusCodes.ok)
})
})
Expand Down
9 changes: 0 additions & 9 deletions src/server/home/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@
</h1>
</div>

<p>You can use this service to apply for an animal disease movement licence if your animals are affected by:</p>

<ul class="govuk-body govuk-list--bullet">
<li>Bovine Tuberculosis (TB)</li>
<li>Bluetongue</li>
<li>Avian influenza</li>
</ul>

<p>It can take up to 5 working days to process and issue a licence.</p>

<p>You will need to provide information about the animals, including their origin and destination.
Expand All @@ -41,7 +33,6 @@
<p>You should not apply for a licence if:</p>

<ul class="govuk-body govuk-list--bullet">
<li>reactors are still on the farm</li>
<li>APHA has not received the results from cattle tuberculin skin tests or interferon-gamma blood tests</li>
</ul>
</div>
Expand Down

0 comments on commit 328e971

Please sign in to comment.