Skip to content

Commit

Permalink
Merge pull request #4105 from alphagov/postcode-lookup-electoral-regi…
Browse files Browse the repository at this point in the history
…stration

Improve postcode lookup pages navigation for Local Electoral Registration page
  • Loading branch information
matthillco committed Jun 12, 2024
2 parents 0b85479 + 9825da4 commit ac2f0e4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/views/electoral/results.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<p class="govuk-body" data-module="ga4-auto-tracker" data-ga4-auto="<%= ga4_auto %>">
<%= t('electoral.service.matched_postcode_html', postcode: @postcode.sanitized_postcode, electoral_service_name: @presenter.electoral_service_name) %>
</p>
<p class="govuk-body"><%= t('electoral.service.search_postcode_html') %></p>
<% end %>
<%
ga4_link = {
Expand Down
1 change: 1 addition & 0 deletions config/locales/cy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ cy:
service:
description: Os oes gennych gwestiwn am eich cerdyn pleidleisio, eich man pleidleisio, neu am ddychwelyd eich papur pleidleisio drwy'r post, cysylltwch â'ch cyngor."
matched_postcode_html: Rydyn ni wedi paru'r cod post <strong>%{postcode}</strong> i <strong>%{electoral_service_name}</strong>.
search_postcode_html: Chwiliwch am god post gwahanol
title: Eich cyngor lleol
error:
find: Ffeindio
Expand Down
3 changes: 2 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ en:
title: Get help with electoral registration
service:
description: For questions about your poll card, polling place, or about returning your postal voting ballot, contact your council."
matched_postcode_html: We've matched the postcode <strong>%{postcode}</strong> to <strong>%{electoral_service_name}</strong>.
matched_postcode_html: We’ve matched the postcode <strong>%{postcode}</strong> to <strong>%{electoral_service_name}</strong>.
search_postcode_html: <a href="/contact-electoral-registration-office" class="govuk-link">Search for a different postcode</a>
title: Your local council
error: Error
find: Find
Expand Down
6 changes: 5 additions & 1 deletion test/integration/electoral_look_up_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ def search_for(postcode:)
# Click on one of the suggested addresses
stub_api_address_lookup("1234", response: api_response)
click_button "Continue"
assert page.has_selector?("p", text: "We've matched the postcode to Cardiff Council")
assert page.has_selector?("p", text: "We’ve matched the postcode to Cardiff Council")
assert page.has_link?(
"Search for a different postcode",
href: "/contact-electoral-registration-office",
)
end
end

Expand Down

0 comments on commit ac2f0e4

Please sign in to comment.