From 4701d21bcb0afcdb87b561a564ca746fbac471d9 Mon Sep 17 00:00:00 2001 From: Simon Hughesdon Date: Tue, 23 Mar 2021 16:37:06 +0000 Subject: [PATCH] Update How to vote schema The [live content has changed](https://www.gov.uk/how-to-vote) --- config/machine_readable/how-to-vote.yml | 6 +++--- test/integration/guide_test.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/machine_readable/how-to-vote.yml b/config/machine_readable/how-to-vote.yml index a689360dd..2094fbd28 100644 --- a/config/machine_readable/how-to-vote.yml +++ b/config/machine_readable/how-to-vote.yml @@ -1,6 +1,6 @@ title: "How to vote" preamble: > -

You need to register to vote before you can vote in UK elections or referendums.

+

You need to be registered to vote before you can vote in UK elections or referendums.

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.

There are elections and referendums in England, Scotland and Wales on 6 May 2021.

@@ -25,7 +25,7 @@ faqs: answer: >

You can vote when you're:

@@ -74,7 +74,7 @@ faqs:
  • not being able to vote in person because of work or military service
  • How to apply for a proxy vote

    -

    Apply for a proxy vote using a paper form. You need to send it to your local Electoral Registration Office.

    +

    Apply for a proxy vote using a paper form. You need to send it to your local Electoral Registration Office.

    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.

    - question: Voting from abroad diff --git a/test/integration/guide_test.rb b/test/integration/guide_test.rb index c707c5691..926f6a94c 100644 --- a/test/integration/guide_test.rb +++ b/test/integration/guide_test.rb @@ -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"], "

    You need to register to vote before you can vote in UK elections or referendums.

    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.

    There are elections and referendums in England, Scotland and Wales on 6 May 2021.

    \n" + assert_equal faq_schema["description"], "

    You need to be registered to vote before you can vote in UK elections or referendums.

    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.

    There are elections and referendums in England, Scotland and Wales on 6 May 2021.

    \n" assert_equal 9, q_and_as.count end