Skip to content

Commit

Permalink
Add new voting and COVID section to the schema
Browse files Browse the repository at this point in the history
The content is already live on https://www.gov.uk/how-to-vote and this is
an update to match.

As we've added a new section we need to increment the section count
  • Loading branch information
sihugh committed Apr 8, 2021
1 parent 945bb41 commit 2100e96
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions config/machine_readable/how-to-vote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@ faqs:
<h2 id="elections-you-can-vote-in">Elections you can vote in</h2>
<p><a href="/elections-in-the-uk?src=schema">Different elections have different rules</a> on who can vote.</p>
- question: Voting and coronavirus (COVID-19)
answer: >
<p>Elections and referendums are going ahead during coronavirus (COVID-19), though you may see changes to some processes. You can still choose to vote in person.</p>
<p>If you’re self-isolating, <a rel="external" href="https://www.nhs.uk/conditions/coronavirus-covid-19/people-at-higher-risk/who-is-at-high-risk-from-coronavirus-clinically-extremely-vulnerable/?src=schema">clinically extremely vulnerable</a>, or do not want to go to the polling station, you can <a href="/how-to-vote?src=schema#postal-voting">vote by post</a> or <a href="/how-to-vote?src=schema#voting-by-proxy">vote by proxy</a>.</p>
<p>From 27 April you’ll also be able to get an emergency proxy vote at short notice if you need to self-isolate shortly before or on election day.</p>
<h2 id="at-the-polling-station">At the polling station</h2>
<p>Because of COVID-19, there will be safety measures in place at polling stations to help you vote safely (for example, restrictions on the number of people allowed in).</p>
<p>If you choose to vote in person, make sure you:</p>
<ul>
<li>wear a face covering (unless you have an exemption)</li>
<li>bring your own pen or pencil (there will be clean pencils available at the polling station if you forget to bring your own)</li>
<li>use hand sanitiser when entering and leaving the polling station</li>
<li>keep to <a href="/government/publications/how-to-stop-the-spread-of-coronavirus-covid-19/how-to-stop-the-spread-of-coronavirus-covid-19?src=schema">social distancing guidelines</a></li>
</ul>
<h2 id="if-you-have-covid-19-symptoms-or-have-been-asked-to-self-isolate">If you have COVID-19 symptoms or have been asked to self-isolate</h2>
<p>Do not visit the polling station. You’ll be able to apply for an emergency proxy vote instead from 27 April.</p>
- question: Voting in person
answer: >
<p>You vote in person at a polling station (usually in a public building, such as a school or local hall).</p>
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 @@ -123,7 +123,7 @@ class GuideTest < ActionDispatch::IntegrationTest
assert_equal faq_schema["headline"], "How to vote"
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
assert_equal 10, q_and_as.count
end

test "voting in the UK guide shows all chapters on a single page" do
Expand Down

0 comments on commit 2100e96

Please sign in to comment.