diff --git a/app/views/solr_datasets/_meta_data.html.erb b/app/views/solr_datasets/_meta_data.html.erb index 06a1e9c8..4a1106bb 100644 --- a/app/views/solr_datasets/_meta_data.html.erb +++ b/app/views/solr_datasets/_meta_data.html.erb @@ -67,6 +67,18 @@ <%= "All datasets from #{@dataset.organisation["title"]}" %> <% end %> + +

<%= t('.search_gov_data') %>

+ diff --git a/config/locales/views/datasets/en.yml b/config/locales/views/datasets/en.yml index 130cb454..8d3d43f6 100644 --- a/config/locales/views/datasets/en.yml +++ b/config/locales/views/datasets/en.yml @@ -98,6 +98,10 @@ en: no_licence: "None" other_licence: "Other Licence" publisher_datasets: "More from this publisher" + search_gov_data: "Search" + accessibility: + search_box_label: "Search" + search_box_button: "Find data" breadcrumb: home: "Home" search: "Search" diff --git a/spec/features/solr_dataset_show_page_spec.rb b/spec/features/solr_dataset_show_page_spec.rb index 5f027ca4..c34292eb 100644 --- a/spec/features/solr_dataset_show_page_spec.rb +++ b/spec/features/solr_dataset_show_page_spec.rb @@ -56,4 +56,11 @@ expect(page).to have_css("a", text: "All datasets from #{dataset.organisation['title']}") end end + + scenario "Displays the search box" do + expect(page).to have_css("h3", text: "Search") + within("form.dgu-search-box") do + expect(page).to have_content("Search") + end + end end