Skip to content

Commit

Permalink
Update How to vote schema
Browse files Browse the repository at this point in the history
The [live content has changed](https://www.gov.uk/how-to-vote)
  • Loading branch information
sihugh committed Mar 23, 2021
1 parent d434dc0 commit 4701d21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config/machine_readable/how-to-vote.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: "How to vote"
preamble: >
<p>You need to <a href="/register-to-vote?src=schema">register to vote</a> before you can vote in UK elections or referendums.</p>
<p>You need to be <a href="/register-to-vote?src=schema">registered to vote</a> before you can vote in UK elections or referendums.</p>
<p>If you’re eligible, you can vote in person on the day of the election at a named polling station. You can also apply for a postal or proxy vote instead.</p>
<p>There are elections and referendums in England, Scotland and Wales on 6 May 2021.</p>
Expand All @@ -25,7 +25,7 @@ faqs:
answer: >
<p>You can vote when you're:</p>
<ul>
<li>18 years old in England, Wales and Northern Ireland</li>
<li>18 years old in England and Northern Ireland</li>
<li>16 years old in Scottish Parliament and local elections (and other elections when you’re 18)</li>
<li>16 years old in Welsh Parliament elections (and other elections when you’re 18)</li>
</ul>
Expand Down Expand Up @@ -74,7 +74,7 @@ faqs:
<li>not being able to vote in person because of work or military service</li>
</ul>
<h2 id="how-to-apply-for-a-proxy-vote">How to apply for a proxy vote</h2>
<p><a href="/government/collections/proxy-voting-application-forms?src=schema">Apply for a proxy vote</a> using a paper form. You need to send it to your local Electoral Registration Office.</p>
<p><a href="/government/collections/proxy-voting-application-forms?src=schema">Apply for a proxy vote</a> using a paper form. You need to send it to your local <a href="/contact-electoral-registration-office?src=schema">Electoral Registration Office</a>.</p>
<p>Usually, you need to apply for a proxy vote at least 6 working days before election day if you want to vote in England, Scotland or Wales.</p>
- question: Voting from abroad
Expand Down
2 changes: 1 addition & 1 deletion test/integration/guide_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class GuideTest < ActionDispatch::IntegrationTest

assert_equal faq_schema["@type"], "FAQPage"
assert_equal faq_schema["headline"], "How to vote"
assert_equal faq_schema["description"], "<p>You need to <a href=\"/register-to-vote?src=schema\">register to vote</a> before you can vote in UK elections or referendums.</p> <p>If you’re eligible, you can vote in person on the day of the election at a named polling station. You can also apply for a postal or proxy vote instead.</p> <p>There are elections and referendums in England, Scotland and Wales on 6 May 2021.</p>\n"
assert_equal faq_schema["description"], "<p>You need to be <a href=\"/register-to-vote?src=schema\">registered to vote</a> before you can vote in UK elections or referendums.</p> <p>If you’re eligible, you can vote in person on the day of the election at a named polling station. You can also apply for a postal or proxy vote instead.</p> <p>There are elections and referendums in England, Scotland and Wales on 6 May 2021.</p>\n"

assert_equal 9, q_and_as.count
end
Expand Down

0 comments on commit 4701d21

Please sign in to comment.