diff --git a/lib/engines/content_block_manager/app/components/content_block_manager/content_block_edition/show/confirm_summary_card_component.rb b/lib/engines/content_block_manager/app/components/content_block_manager/content_block_edition/show/confirm_summary_card_component.rb index 52a40b4213b..4c4c8b08d28 100644 --- a/lib/engines/content_block_manager/app/components/content_block_manager/content_block_edition/show/confirm_summary_card_component.rb +++ b/lib/engines/content_block_manager/app/components/content_block_manager/content_block_edition/show/confirm_summary_card_component.rb @@ -30,7 +30,7 @@ def title_item def details_items content_block_edition.first_class_details.map do |key, value| { - key: "New #{key.humanize.downcase}", + key: key.humanize, value:, } end diff --git a/lib/engines/content_block_manager/test/components/content_block/edition/show/confirm_summary_card_component_test.rb b/lib/engines/content_block_manager/test/components/content_block/edition/show/confirm_summary_card_component_test.rb index 927490774fc..a08c03db7b0 100644 --- a/lib/engines/content_block_manager/test/components/content_block/edition/show/confirm_summary_card_component_test.rb +++ b/lib/engines/content_block_manager/test/components/content_block/edition/show/confirm_summary_card_component_test.rb @@ -43,7 +43,7 @@ class ContentBlockManager::ContentBlockEdition::Show::ConfirmSummaryCardComponen assert_selector ".govuk-summary-list__row:nth-child(1) .govuk-summary-list__key", text: "Title" assert_selector ".govuk-summary-list__row:nth-child(1) .govuk-summary-list__value", text: "Some edition title" - assert_selector ".govuk-summary-list__row:nth-child(2) .govuk-summary-list__key", text: "New interesting fact" + assert_selector ".govuk-summary-list__row:nth-child(2) .govuk-summary-list__key", text: "Interesting fact" assert_selector ".govuk-summary-list__row:nth-child(2) .govuk-summary-list__value", text: "value of fact" assert_selector ".govuk-summary-list__row:nth-child(3) .govuk-summary-list__key", text: "Lead organisation"