diff --git a/app/views/content_items/worldwide_corporate_information_page.html.erb b/app/views/content_items/worldwide_corporate_information_page.html.erb index 2eaf2c027..87770eaed 100644 --- a/app/views/content_items/worldwide_corporate_information_page.html.erb +++ b/app/views/content_items/worldwide_corporate_information_page.html.erb @@ -1,5 +1,6 @@ <%= render partial: "content_items/worldwide_organisation/header", locals: { worldwide_organisation: @content_item.worldwide_organisation, + show_header_title: false, } %>
diff --git a/app/views/content_items/worldwide_office.html.erb b/app/views/content_items/worldwide_office.html.erb index eac88d649..a44da5c43 100644 --- a/app/views/content_items/worldwide_office.html.erb +++ b/app/views/content_items/worldwide_office.html.erb @@ -1,5 +1,6 @@ <%= render partial: "content_items/worldwide_organisation/header", locals: { worldwide_organisation: @content_item.worldwide_organisation, + show_header_title: false, } %>
diff --git a/app/views/content_items/worldwide_organisation.html.erb b/app/views/content_items/worldwide_organisation.html.erb index 189d3141e..982fa80f0 100644 --- a/app/views/content_items/worldwide_organisation.html.erb +++ b/app/views/content_items/worldwide_organisation.html.erb @@ -1,4 +1,4 @@ -<%= render partial: "content_items/worldwide_organisation/header", locals: { worldwide_organisation: @content_item } %> +<%= render partial: "content_items/worldwide_organisation/header", locals: { worldwide_organisation: @content_item, show_header_title: true } %>
diff --git a/app/views/content_items/worldwide_organisation/_header.html.erb b/app/views/content_items/worldwide_organisation/_header.html.erb index 1166ae533..87b4f3b98 100644 --- a/app/views/content_items/worldwide_organisation/_header.html.erb +++ b/app/views/content_items/worldwide_organisation/_header.html.erb @@ -1,10 +1,20 @@
diff --git a/test/integration/worldwide_organisation_test.rb b/test/integration/worldwide_organisation_test.rb index c6bf76067..4766a413b 100644 --- a/test/integration/worldwide_organisation_test.rb +++ b/test/integration/worldwide_organisation_test.rb @@ -3,7 +3,8 @@ class WorldwideOrganisationTest < ActionDispatch::IntegrationTest test "renders basic worldwide organisation page" do setup_and_visit_content_item("worldwide_organisation") - assert_has_component_title("British Deputy High Commission\nHyderabad") + assert_has_component_title("UK Embassy in Country") + assert page.has_css?(".gem-c-organisation-logo__name") assert page.has_text?(@content_item["description"]) end