From 455385df90f0b1269827b214d65a515c500832ca Mon Sep 17 00:00:00 2001 From: Michael Walker Date: Mon, 6 Apr 2020 10:28:55 +0100 Subject: [PATCH] Use "name" field instead of "headline" https://github.com/alphagov/govuk_publishing_components/pull/1423/commits/c85c8fb6297731fd792833fedc90b3760a51f37d --- test/integration/answer_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/answer_test.rb b/test/integration/answer_test.rb index b1bb1150a..209e872f4 100644 --- a/test/integration/answer_test.rb +++ b/test/integration/answer_test.rb @@ -25,7 +25,7 @@ class AnswerTest < ActionDispatch::IntegrationTest setup_and_visit_content_item("answer") faq_schema = find_structured_data(page, "FAQPage") - assert_equal faq_schema["headline"], @content_item["title"] + assert_equal faq_schema["name"], @content_item["title"] assert_not_equal faq_schema["mainEntity"], [] end end