Skip to content

Commit

Permalink
FSR-1237: Revert link back to original
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyurx11 committed Sep 20, 2024
1 parent 8e13eb4 commit 5a13eb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/views/target-area.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h1 class="govuk-heading-xl govuk-!-margin-bottom-1">{{ model.pageTitle }}</h1>
<!-- Link to river, sea, groundwater, or rainfall levels in the area -->
<p>
<a data-journey-click="Target Area:Station list:TA - View station list" href="/river-and-sea-levels/target-area/{{ model.targetArea }}">
Find other river and sea levels
Find a river, sea, groundwater or rainfall level in this area
</a>
</p>

Expand Down
4 changes: 2 additions & 2 deletions test/routes/target-area-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describe('target-area route', () => {
expect(response.statusCode).to.equal(200)
const root = parse(response.payload)
linkChecker(root.querySelectorAll('a'),
'Find other river and sea levels',
'Find a river, sea, groundwater or rainfall level in this area',
`/river-and-sea-levels/target-area/${AREA_CODE}`
)
})
Expand Down Expand Up @@ -175,7 +175,7 @@ describe('target-area route', () => {
expect(response.statusCode).to.equal(200)
const root = parse(response.payload)
linkChecker(root.querySelectorAll('a'),
'Find other river and sea levels',
'Find a river, sea, groundwater or rainfall level in this area',
`/river-and-sea-levels/target-area/${AREA_CODE}`
)
})
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 @@ -286,7 +286,7 @@ lab.experiment('Target-area tests', () => {

Code.expect(response.statusCode).to.equal(200)
const root = parse(response.payload)
Code.expect(response.payload).to.contain('Find other river and sea levels')
Code.expect(response.payload).to.contain('Find a river, sea, groundwater or rainfall level in this area')
Code.expect(response.payload).to.contain('<a data-journey-click="Target Area:Station list:TA - View station list" href="/river-and-sea-levels/target-area/011WAFDW">')

const relatedContentLinks = root.querySelectorAll('.defra-related-items a')
Expand Down Expand Up @@ -357,7 +357,7 @@ lab.experiment('Target-area tests', () => {
// context footer check
validateFooterPresent(response)
Code.expect(response.payload).to.contain('Severe flood warning for Upper River Derwent, Stonethwaite Beck and Derwent Water')
Code.expect(response.payload).to.contain('Find other river and sea levels')
Code.expect(response.payload).to.contain('Find a river, sea, groundwater or rainfall level in this area')

const anchorFound = root.querySelectorAll('a').some(a =>
a.attributes.href === '/river-and-sea-levels/target-area/011WAFDW'
Expand Down

0 comments on commit 5a13eb5

Please sign in to comment.