diff --git a/app/views/organisations/schemes.html.erb b/app/views/organisations/schemes.html.erb index 9b1e0ca93..ac64a6a07 100644 --- a/app/views/organisations/schemes.html.erb +++ b/app/views/organisations/schemes.html.erb @@ -1,5 +1,5 @@ <% item_label = format_label(@pagy.count, "scheme") %> -<% title = format_title(@searched, "Schemes", current_user, item_label, @pagy.count, @organisation.name) %> +<% title = format_title(@searched, "Supported housing schemes", current_user, item_label, @pagy.count, @organisation.name) %> <% content_for :title, title %> @@ -11,7 +11,7 @@ ) %> <% end %> -

Schemes

+

Supported housing schemes

<%= render SearchComponent.new(current_user:, search_label: "Search by service name or code", value: @searched) %> diff --git a/app/views/schemes/index.html.erb b/app/views/schemes/index.html.erb index 3cc548f39..7d2ae2530 100644 --- a/app/views/schemes/index.html.erb +++ b/app/views/schemes/index.html.erb @@ -1,11 +1,11 @@ <% item_label = format_label(@pagy.count, "scheme") %> -<% title = format_title(@searched, "Schemes", current_user, item_label, @pagy.count, nil) %> +<% title = format_title(@searched, "Supported housing schemes", current_user, item_label, @pagy.count, nil) %> <% content_for :title, title %> -<%= render partial: "organisations/headings", locals: current_user.support? ? { main: "Schemes", sub: nil } : { main: "Schemes", sub: current_user.organisation.name } %> +<%= render partial: "organisations/headings", locals: current_user.support? ? { main: "Supported housing schemes", sub: nil } : { main: "Supported housing schemes", sub: current_user.organisation.name } %> -

Schemes

+

Supported housing schemes

<%= render SearchComponent.new(current_user:, search_label: "Search by service name or code", value: @searched) %> diff --git a/spec/requests/organisations_controller_spec.rb b/spec/requests/organisations_controller_spec.rb index ddfe89267..9179ec3b3 100644 --- a/spec/requests/organisations_controller_spec.rb +++ b/spec/requests/organisations_controller_spec.rb @@ -60,7 +60,7 @@ RSpec.describe OrganisationsController, type: :request do end it "has hidden accebility field with description" do - expected_field = "

Schemes

" + expected_field = "

Supported housing schemes

" expect(CGI.unescape_html(response.body)).to include(expected_field) end @@ -116,7 +116,7 @@ RSpec.describe OrganisationsController, type: :request do end it "has hidden accessibility field with description" do - expected_field = "

Schemes

" + expected_field = "

Supported housing schemes

" expect(CGI.unescape_html(response.body)).to include(expected_field) end @@ -159,7 +159,7 @@ RSpec.describe OrganisationsController, type: :request do end it "has search in the title" do - expect(page).to have_title("Schemes (1 scheme matching ‘#{search_param}’) - Submit social housing lettings and sales data (CORE) - GOV.UK") + expect(page).to have_title("Supported housing schemes (1 scheme matching ‘#{search_param}’) - Submit social housing lettings and sales data (CORE) - GOV.UK") end end end diff --git a/spec/requests/schemes_controller_spec.rb b/spec/requests/schemes_controller_spec.rb index 3ea528ec3..e4bf9b6a8 100644 --- a/spec/requests/schemes_controller_spec.rb +++ b/spec/requests/schemes_controller_spec.rb @@ -65,7 +65,7 @@ RSpec.describe SchemesController, type: :request do end it "has correct title" do - expect(page).to have_title("Schemes - Submit social housing lettings and sales data (CORE) - GOV.UK") + expect(page).to have_title("Supported housing schemes - Submit social housing lettings and sales data (CORE) - GOV.UK") end it "shows the total organisations count" do @@ -73,7 +73,7 @@ RSpec.describe SchemesController, type: :request do end it "has hidden accebility field with description" do - expected_field = "

Schemes

" + expected_field = "

Supported housing schemes

" expect(CGI.unescape_html(response.body)).to include(expected_field) end @@ -98,7 +98,7 @@ RSpec.describe SchemesController, type: :request do end it "has correct page 1 of 2 title" do - expect(page).to have_title("Schemes (page 1 of 2) - Submit social housing lettings and sales data (CORE) - GOV.UK") + expect(page).to have_title("Supported housing schemes (page 1 of 2) - Submit social housing lettings and sales data (CORE) - GOV.UK") end it "has pagination links" do @@ -130,7 +130,7 @@ RSpec.describe SchemesController, type: :request do end it "has correct page 1 of 2 title" do - expect(page).to have_title("Schemes (page 2 of 2) - Submit social housing lettings and sales data (CORE) - GOV.UK") + expect(page).to have_title("Supported housing schemes (page 2 of 2) - Submit social housing lettings and sales data (CORE) - GOV.UK") end end end @@ -155,7 +155,7 @@ RSpec.describe SchemesController, type: :request do end it "has search in the title" do - expect(page).to have_title("Schemes (1 scheme matching ‘#{search_param}’) - Submit social housing lettings and sales data (CORE) - GOV.UK") + expect(page).to have_title("Supported housing schemes (1 scheme matching ‘#{search_param}’) - Submit social housing lettings and sales data (CORE) - GOV.UK") end end end