diff --git a/app/views/content_items/service_manual_topic.html.erb b/app/views/content_items/service_manual_topic.html.erb index 8b63869db..2b461ff83 100644 --- a/app/views/content_items/service_manual_topic.html.erb +++ b/app/views/content_items/service_manual_topic.html.erb @@ -4,7 +4,6 @@ <% content_for :phase_message do %> <%= render 'shared/custom_phase_message', phase: @content_item.phase %> <% end %> -
<%= render "govuk_publishing_components/components/breadcrumbs", { breadcrumbs: @content_item.breadcrumbs, @@ -89,4 +88,3 @@
- \ No newline at end of file diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index b8a944baf..feeb27d06 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -10,9 +10,7 @@ <%= render 'govuk_publishing_components/components/phase_banner', phase: @content_item.phase %> <% end %> <% if @content_item.service_manual? %> -
<%= render_phase_label @content_item, content_for(:phase_message) %> -
<% end %> <% if @content_item.show_default_breadcrumbs? %> diff --git a/test/integration/service_manual_phase_label_test.rb b/test/integration/service_manual_phase_label_test.rb index 728e36666..133a0ad9c 100644 --- a/test/integration/service_manual_phase_label_test.rb +++ b/test/integration/service_manual_phase_label_test.rb @@ -29,7 +29,9 @@ class ServiceManualPhaseLabelTest < ActionDispatch::IntegrationTest stub_content_store_has_item(guide["base_path"], guide) visit guide["base_path"] - assert_text("Alpha") + phase_label = find("strong.govuk-tag.govuk-phase-banner__content__tag").text + + assert_match(/alpha/i, phase_label.strip) end test "No phase label is displayed for a guide without a phase field" do