From 81de90ad78a332784fdb78116e74171aa0f8c8e3 Mon Sep 17 00:00:00 2001 From: pezholio Date: Wed, 4 Dec 2024 14:41:18 +0000 Subject: [PATCH] Change title of review links page This makes it clearer what the purpose of the page is --- .../content_block/editions/workflow/review_links.html.erb | 2 +- .../features/step_definitions/content_block_manager_steps.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/engines/content_block_manager/app/views/content_block_manager/content_block/editions/workflow/review_links.html.erb b/lib/engines/content_block_manager/app/views/content_block_manager/content_block/editions/workflow/review_links.html.erb index 60a23dfd781..84fa45f29b2 100644 --- a/lib/engines/content_block_manager/app/views/content_block_manager/content_block/editions/workflow/review_links.html.erb +++ b/lib/engines/content_block_manager/app/views/content_block_manager/content_block/editions/workflow/review_links.html.erb @@ -1,5 +1,5 @@ <% content_for :context, context %> -<% content_for :title, "Where the change will appear" %> +<% content_for :title, "Preview #{@content_block_document.block_type.humanize.downcase}" %> <% content_for :title_margin_bottom, 4 %> <% content_for :back_link do %> <%= render "govuk_publishing_components/components/back_link", { diff --git a/lib/engines/content_block_manager/features/step_definitions/content_block_manager_steps.rb b/lib/engines/content_block_manager/features/step_definitions/content_block_manager_steps.rb index 5498583214e..9a1d940bc93 100644 --- a/lib/engines/content_block_manager/features/step_definitions/content_block_manager_steps.rb +++ b/lib/engines/content_block_manager/features/step_definitions/content_block_manager_steps.rb @@ -489,7 +489,7 @@ def should_show_edit_form_for_email_address_content_block(document_title, email_ end Then(/^I am shown where the changes will take place$/) do - expect(page).to have_selector("h1", text: "Where the change will appear") + expect(page).to have_selector("h1", text: "Preview email address") @dependent_content.each do |item| assert_text item["title"]