Skip to content

Commit 90fc289

Browse files
feat: change claim tab content (#56)
* feat: change claim tab content * bump: version * fix: tests
1 parent 55d9e87 commit 90fc289

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

app/routes/models/application-claim.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ module.exports = (application) => {
66
return {
77
firstCellIsHeader: true,
88
rows: [
9+
[{ text: 'Date of review' }, { text: formatedDateToUk(data?.visitDate) }],
910
[{ text: 'Date of claim' }, { text: formatedDate }],
1011
[{ text: 'Review details confirmed' }, { text: upperFirstLetter(data?.confirmCheckDetails) }],
11-
[{ text: 'Date of review' }, { text: formatedDateToUk(data?.visitDate) }],
1212
[{ text: 'Vet’s name' }, { text: data?.vetName }],
1313
[{ text: 'Vet’s RCVS number' }, { text: data?.vetRcvs }],
1414
[{ text: 'Test results unique reference number (URN)' }, { text: data?.urnResult }]

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ffc-ahwr-backoffice",
3-
"version": "1.14.7",
3+
"version": "1.14.8",
44
"description": "Back office of the health and welfare of your livestock",
55
"homepage": "https://github.com/DEFRA/ffc-ahwr-backoffice",
66
"main": "app/index.js",

test/integration/narrow/routes/view-application.test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ describe('View Application test', () => {
173173

174174
expect($('#claim').text()).toContain('Claimed')
175175

176-
expect($('tbody:nth-child(1) tr:nth-child(1)').text()).toContain('Date of claim')
177-
expect($('tbody:nth-child(1) tr:nth-child(1)').text()).toContain('07/12/2022')
178-
expect($('tbody:nth-child(1) tr:nth-child(2)').text()).toContain('Review details confirmed')
179-
expect($('tbody:nth-child(1) tr:nth-child(2)').text()).toContain('Yes')
180-
expect($('tbody:nth-child(1) tr:nth-child(3)').text()).toContain('Date of review')
181-
expect($('tbody:nth-child(1) tr:nth-child(3)').text()).toContain('07/11/2022')
176+
expect($('tbody:nth-child(1) tr:nth-child(1)').text()).toContain('Date of review')
177+
expect($('tbody:nth-child(1) tr:nth-child(1)').text()).toContain('07/11/2022')
178+
expect($('tbody:nth-child(1) tr:nth-child(2)').text()).toContain('Date of claim')
179+
expect($('tbody:nth-child(1) tr:nth-child(2)').text()).toContain('07/12/2022')
180+
expect($('tbody:nth-child(1) tr:nth-child(3)').text()).toContain('Review details confirmed')
181+
expect($('tbody:nth-child(1) tr:nth-child(3)').text()).toContain('Yes')
182182
expect($('tbody:nth-child(1) tr:nth-child(4)').text()).toContain('Vet’s name')
183183
expect($('tbody:nth-child(1) tr:nth-child(4)').text()).toContain('testVet')
184184
expect($('tbody:nth-child(1) tr:nth-child(5)').text()).toContain('Vet’s RCVS number')

0 commit comments

Comments
 (0)