generated from DEFRA/ffc-template-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove: vet tab * bump: version * fix: linting, remove vet tabs unit tests
- Loading branch information
1 parent
f72f792
commit f5d068e
Showing
4 changed files
with
1 addition
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ const applications = require('../../../../app/api/applications') | |
const { administrator } = require('../../../../app/auth/permissions') | ||
const viewApplicationData = require('.././../../data/view-applications.json') | ||
const reference = 'VV-555A-FD4C' | ||
const eligibleSpecies = require('../../../../app/constants/eligible-species') | ||
|
||
jest.mock('../../../../app/api/applications') | ||
|
||
|
@@ -67,7 +66,6 @@ describe('View Application test', () => { | |
expect($('tbody tr:nth-child(3) td:nth-child(3)').text()).toContain('At least 21') | ||
expect($('tbody tr:nth-child(4) td:nth-child(2)').text()).toContain('T&Cs agreed?') | ||
expect($('tbody tr:nth-child(4) td:nth-child(3)').text()).toContain('Yes') | ||
expect($('#vet-review').text()).toContain('Not yet reviewed') | ||
expect($('#claim').text()).toContain('Not yet able to claim') | ||
expect($('#payment').text()).toContain('Not yet paid') | ||
expectPhaseBanner.ok($) | ||
|
@@ -95,19 +93,6 @@ describe('View Application test', () => { | |
expect($('.govuk-summary-list__key').eq(2).text()).toMatch('Email address:') | ||
expect($('.govuk-summary-list__value').eq(2).text()).toMatch('[email protected]') | ||
|
||
expect($('#vet-review').text()).toContain('Data inputted') | ||
expect($('tbody:nth-child(2) tr:nth-child(1) td:nth-child(2)').text()).toContain('Review date') | ||
expect($('tbody:nth-child(2) tr:nth-child(1) td:nth-child(3)').text()).toContain('06/06/2022') | ||
expect($('tbody:nth-child(2) tr:nth-child(2) td:nth-child(2)').text()).toContain(eligibleSpecies.sheep) | ||
expect($('tbody:nth-child(2) tr:nth-child(2) td:nth-child(3)').text()).toContain('Yes') | ||
expect($('tbody:nth-child(2) tr:nth-child(3) td:nth-child(2)').text()).toContain('Worms in sheep?') | ||
expect($('tbody:nth-child(2) tr:nth-child(3) td:nth-child(3)').text()).toContain('Yes') | ||
expect($('tbody:nth-child(2) tr:nth-child(4) td:nth-child(2)').text()).toContain('Percentage reduction in EPG?') | ||
expect($('tbody:nth-child(2) tr:nth-child(4) td:nth-child(3)').text()).toContain('40') | ||
expect($('tbody:nth-child(2) tr:nth-child(5) td:nth-child(2)').text()).toContain('Active chemical used in worming treatment') | ||
expect($('tbody:nth-child(2) tr:nth-child(5) td:nth-child(3)').text()).toContain('LV') | ||
expect($('tbody:nth-child(2) tr:nth-child(6) td:nth-child(2)').text()).toContain('Report given?') | ||
expect($('tbody:nth-child(2) tr:nth-child(6) td:nth-child(3)').text()).toContain('Yes') | ||
expect($('#claim').text()).toContain('Not yet able to claim') | ||
expect($('#payment').text()).toContain('Not yet paid') | ||
expectPhaseBanner.ok($) | ||
|
@@ -135,15 +120,6 @@ describe('View Application test', () => { | |
expect($('.govuk-summary-list__key').eq(2).text()).toMatch('Email address:') | ||
expect($('.govuk-summary-list__value').eq(2).text()).toMatch('[email protected]') | ||
|
||
expect($('#vet-review').text()).toContain('Data inputted') | ||
expect($('tbody:nth-child(2) tr:nth-child(1) td:nth-child(2)').text()).toContain('Review date') | ||
expect($('tbody:nth-child(2) tr:nth-child(1) td:nth-child(3)').text()).toContain('06/06/2022') | ||
expect($('tbody:nth-child(2) tr:nth-child(2) td:nth-child(2)').text()).toContain(eligibleSpecies.pigs) | ||
expect($('tbody:nth-child(2) tr:nth-child(2) td:nth-child(3)').text()).toContain('Yes') | ||
expect($('tbody:nth-child(2) tr:nth-child(3) td:nth-child(2)').text()).toContain('PRRS in herd?') | ||
expect($('tbody:nth-child(2) tr:nth-child(3) td:nth-child(3)').text()).toContain('Yes') | ||
|
||
expect($('#vet-review').text()).toContain('Data inputted') | ||
expect($('#claim').text()).toContain('Selected for fraud check') | ||
expect($('tbody:nth-child(2) tr:nth-child(1) td:nth-child(2)').text()).toContain('Details correct?') | ||
expect($('tbody:nth-child(2) tr:nth-child(1) td:nth-child(3)').text()).toContain('Yes') | ||
|
@@ -173,20 +149,6 @@ describe('View Application test', () => { | |
expect($('.govuk-summary-list__key').eq(2).text()).toMatch('Email address:') | ||
expect($('.govuk-summary-list__value').eq(2).text()).toMatch('[email protected]') | ||
|
||
expect($('#vet-review').text()).toContain('Data inputted') | ||
expect($('tbody:nth-child(2) tr:nth-child(1) td:nth-child(2)').text()).toContain('Review date') | ||
expect($('tbody:nth-child(2) tr:nth-child(1) td:nth-child(3)').text()).toContain('06/06/2022') | ||
expect($('tbody:nth-child(2) tr:nth-child(2) td:nth-child(2)').text()).toContain(eligibleSpecies.beef) | ||
expect($('tbody:nth-child(2) tr:nth-child(2) td:nth-child(3)').text()).toContain('Yes') | ||
expect($('tbody:nth-child(2) tr:nth-child(3) td:nth-child(2)').text()).toContain('BVD in herd?') | ||
expect($('tbody:nth-child(2) tr:nth-child(3) td:nth-child(3)').text()).toContain('Yes') | ||
expect($('tbody:nth-child(2) tr:nth-child(4) td:nth-child(2)').text()).toContain('Species Vaccinated?') | ||
expect($('tbody:nth-child(2) tr:nth-child(4) td:nth-child(3)').text()).toContain('Yes') | ||
expect($('tbody:nth-child(2) tr:nth-child(5) td:nth-child(2)').text()).toContain('Last Vaccinated?') | ||
expect($('tbody:nth-child(2) tr:nth-child(5) td:nth-child(3)').text()).toContain('6-2008') | ||
expect($('tbody:nth-child(2) tr:nth-child(6) td:nth-child(2)').text()).toContain('Vaccination up to date?') | ||
expect($('tbody:nth-child(2) tr:nth-child(6) td:nth-child(3)').text()).toContain('No') | ||
|
||
expect($('#claim').text()).toContain('Selected for fraud check') | ||
expect($('#payment').text()).toContain('Payment information') | ||
expect($('tbody:nth-child(2) tr:nth-child(1) td:nth-child(2)').text()).toContain('G00 - Gross value of claim') | ||
|