Skip to content

Commit

Permalink
Fix QA issues in new Monitoring stations page (#1395)
Browse files Browse the repository at this point in the history
https://eaflood.atlassian.net/browse/WATER-4679

We are working on [migrating the monitoring station page](#1340) from the legacy UI to this repo. Our fantastic QA team have spotted some issues with the first iteration that this change addresses.

- The `< Back` link was supposed to be `< Go back to search`
- When a monitoring station (gauging station) is linked to a licence, the link to the licence is broken

This change fixes those issues.
  • Loading branch information
Cruikshanks authored Oct 10, 2024
1 parent 57d03a2 commit 8cfb1b0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function _groupLicences (licences) {

if (!grouped[id]) {
grouped[id] = {
licenceId: id,
id,
licenceRef,
linkages: []
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/monitoring-stations/view.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{# Back link #}
{{
govukBackLink({
text: 'Back',
text: 'Go back to search',
href: "/licences"
})
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('View Monitoring Stations presenter', () => {
stationReference: null,
licences: [
{
licenceId: '3cd1481c-e96a-45fc-8f2b-1849564b95a5',
id: '3cd1481c-e96a-45fc-8f2b-1849564b95a5',
licenceRef: 'AT/TEST',
linkages: [
{
Expand Down Expand Up @@ -214,7 +214,7 @@ describe('View Monitoring Stations presenter', () => {
stationReference: null,
licences: [
{
licenceId: '3cd1481c-e96a-45fc-8f2b-1849564b95a5',
id: '3cd1481c-e96a-45fc-8f2b-1849564b95a5',
licenceRef: 'AT/TEST',
linkages: [{
abstractionPeriod: '1 April to 31 August',
Expand All @@ -240,7 +240,7 @@ describe('View Monitoring Stations presenter', () => {
}]
},
{
licenceId: 'fb46704b-0e8c-488e-9b58-faf87b6d9a01',
id: 'fb46704b-0e8c-488e-9b58-faf87b6d9a01',
licenceRef: 'AT/TEST/2',
linkages: [{
abstractionPeriod: '1 February to 22 July',
Expand Down
2 changes: 1 addition & 1 deletion test/services/monitoring-stations/view.service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('View service', () => {
stationReference: null,
licences: [
{
licenceId: '3cd1481c-e96a-45fc-8f2b-1849564b95a5',
id: '3cd1481c-e96a-45fc-8f2b-1849564b95a5',
licenceRef: 'AT/TEST',
linkages: [
{
Expand Down

0 comments on commit 8cfb1b0

Please sign in to comment.