Skip to content

Commit

Permalink
FSR-1237: Add fullstop for multiple gauges link
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyurx11 committed Sep 19, 2024
1 parent 39e02fa commit 8e13eb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/views/partials/latest-levels.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2 class="defra-live__title">Latest level{% if model.latestLevels.length > 1 %}
<p class="defra-flood-meta defra-flood-meta--no-border govuk-!-margin-bottom-0"><strong>{{ warnings.formatted_time }}</strong></p>
<p>The {{ warnings.river_name }} level at {{ warnings.agency_name }} was {{ warnings.latest_level | toFixed(2) }} metres. Property flooding is possible when it goes above {{ warnings.threshold_value | toFixed(2) }} metres.
{% if model.latestLevels.length > 1 %}
<a href="/station/{{ warnings.rloi_id }}{% if warnings.direction == 'd' %}-downstage{% endif %}">Monitor the {{ warnings.river_name }} level at {{ warnings.agency_name }}{% if warnings.iswales %} (Natural Resources Wales){% endif %}</a>
<a href="/station/{{ warnings.rloi_id }}{% if warnings.direction == 'd' %}-downstage{% endif %}">Monitor the {{ warnings.river_name }} level at {{ warnings.agency_name }}{% if warnings.iswales %} (Natural Resources Wales){% endif %}.</a>
{% endif %}
</p>
{% if model.latestLevels.length == 1 %}
Expand Down
4 changes: 2 additions & 2 deletions test/routes/target-area.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ lab.experiment('Target-area tests', () => {
Code.expect(response.payload).to.contain('<h2 class="defra-live__title">Latest levels</h2>')
Code.expect(response.payload).to.contain('<p>The River Pinn level at Eastcote Road was 0.35 metres. Property flooding is possible when it goes above 1.40 metres.')
Code.expect(response.payload).to.contain('<p>The River Pinn level at Avenue Road was 0.18 metres. Property flooding is possible when it goes above 1.46 metres.')
Code.expect(response.payload).to.contain('<a href="/station/7173">Monitor the River Pinn level at Avenue Road</a>')
Code.expect(response.payload).to.contain('<a href="/station/7173">Monitor the River Pinn level at Avenue Road.</a>')
Code.expect(response.payload).to.contain('<p>The River Pinn level at Moss Close was 0.13 metres. Property flooding is possible when it goes above 1.15 metres.')
Code.expect(response.payload).to.contain('<a href="/station/7201">Monitor the River Pinn level at Moss Close</a>')
Code.expect(response.payload).to.contain('<a href="/station/7201">Monitor the River Pinn level at Moss Close.</a>')
})
lab.test('Check flood severity banner link for Flood warning', async () => {
const floodService = require('../../server/services/flood')
Expand Down

0 comments on commit 8e13eb4

Please sign in to comment.