From 5a343403d321a79e85f0f5052f54470cbddd839b Mon Sep 17 00:00:00 2001 From: Harriet H-W Date: Wed, 4 Dec 2024 09:38:33 +0000 Subject: [PATCH] change review page button copy to 'Confirm' --- features/step_definitions/previously_published_steps.rb | 4 ++++ .../content_block/editions/workflow/review.html.erb | 6 +++--- .../content_block_manager/features/create_object.feature | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/features/step_definitions/previously_published_steps.rb b/features/step_definitions/previously_published_steps.rb index 6141bf0d90d..629833815d4 100644 --- a/features/step_definitions/previously_published_steps.rb +++ b/features/step_definitions/previously_published_steps.rb @@ -10,6 +10,10 @@ click_button "Save" end +And(/^I click confirm$/) do + click_button "Confirm" +end + And(/^I select a previously published date in the future$/) do check "This document has previously been published on another website" within "#edition_previously_published" do diff --git a/lib/engines/content_block_manager/app/views/content_block_manager/content_block/editions/workflow/review.html.erb b/lib/engines/content_block_manager/app/views/content_block_manager/content_block/editions/workflow/review.html.erb index 637bd98389f..6ea2ee319af 100644 --- a/lib/engines/content_block_manager/app/views/content_block_manager/content_block/editions/workflow/review.html.erb +++ b/lib/engines/content_block_manager/app/views/content_block_manager/content_block/editions/workflow/review.html.erb @@ -22,9 +22,9 @@
<%= render "govuk_publishing_components/components/button", { - text: "Accept and publish", - name: "accept_and_publish", - value: "Accept and publish", + text: "Confirm", + name: "confirm", + value: "Confirm", type: "submit", } %> <% end %> diff --git a/lib/engines/content_block_manager/features/create_object.feature b/lib/engines/content_block_manager/features/create_object.feature index bbb5d98dadc..e4ef6194431 100644 --- a/lib/engines/content_block_manager/features/create_object.feature +++ b/lib/engines/content_block_manager/features/create_object.feature @@ -24,7 +24,7 @@ Feature: Create a content object | title | email_address | department | organisation | instructions_to_publishers | | my email address | foo@example.com | Somewhere | Ministry of Example | this is important | Then I am asked to review my answers - When I accept and publish + When I click confirm Then the edition should have been created successfully And I should be taken to the confirmation page @@ -86,7 +86,7 @@ Feature: Create a content object | title | | my email address 2 | Then I am asked to review my answers - When I accept and publish + When I click confirm Then the edition should have been created successfully And I should be taken to the confirmation page