From f2c954bb01c035553c0f903a22c59df6ae9eb17d Mon Sep 17 00:00:00 2001
From: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com>
Date: Tue, 28 Jun 2022 15:57:23 +0100
Subject: [PATCH] Change scheme search label (#699)
---
app/views/organisations/schemes.html.erb | 2 +-
app/views/schemes/index.html.erb | 2 +-
spec/features/schemes_spec.rb | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/app/views/organisations/schemes.html.erb b/app/views/organisations/schemes.html.erb
index 364a26c0b..65f7e7f23 100644
--- a/app/views/organisations/schemes.html.erb
+++ b/app/views/organisations/schemes.html.erb
@@ -13,7 +13,7 @@
Supported housing schemes
-<%= render SearchComponent.new(current_user:, search_label: "Search by scheme name or code", value: @searched) %>
+<%= render SearchComponent.new(current_user:, search_label: "Search by scheme name, code or postcode", value: @searched) %>
diff --git a/app/views/schemes/index.html.erb b/app/views/schemes/index.html.erb
index 50affc921..ae8f344e7 100644
--- a/app/views/schemes/index.html.erb
+++ b/app/views/schemes/index.html.erb
@@ -7,7 +7,7 @@
Supported housing schemes
-<%= render SearchComponent.new(current_user:, search_label: "Search by scheme name or code", value: @searched) %>
+<%= render SearchComponent.new(current_user:, search_label: "Search by scheme name, code or postcode", value: @searched) %>
diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb
index 463e17f56..44cc276f8 100644
--- a/spec/features/schemes_spec.rb
+++ b/spec/features/schemes_spec.rb
@@ -32,7 +32,7 @@ RSpec.describe "Schemes scheme Features" do
context "when I search for a specific scheme" do
it "there is a search bar with a message and search button for schemes" do
expect(page).to have_field("search")
- expect(page).to have_content("Search by scheme name or code")
+ expect(page).to have_content("Search by scheme name, code or postcode")
expect(page).to have_button("Search")
end
@@ -105,7 +105,7 @@ RSpec.describe "Schemes scheme Features" do
context "when I search for a specific scheme" do
it "there is a search bar with a message and search button for schemes" do
expect(page).to have_field("search")
- expect(page).to have_content("Search by scheme name or code")
+ expect(page).to have_content("Search by scheme name, code or postcode")
expect(page).to have_button("Search")
end