Browse Source

Change scheme search label (#699)

pull/700/head
kosiakkatrina 3 years ago committed by GitHub
parent
commit
f2c954bb01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/views/organisations/schemes.html.erb
  2. 2
      app/views/schemes/index.html.erb
  3. 4
      spec/features/schemes_spec.rb

2
app/views/organisations/schemes.html.erb

@ -13,7 +13,7 @@
<h2 class="govuk-visually-hidden">Supported housing schemes</h2> <h2 class="govuk-visually-hidden">Supported housing schemes</h2>
<%= 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) %>
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m"> <hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m">

2
app/views/schemes/index.html.erb

@ -7,7 +7,7 @@
<h2 class="govuk-visually-hidden">Supported housing schemes</h2> <h2 class="govuk-visually-hidden">Supported housing schemes</h2>
<%= 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) %>
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m"> <hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m">

4
spec/features/schemes_spec.rb

@ -32,7 +32,7 @@ RSpec.describe "Schemes scheme Features" do
context "when I search for a specific scheme" 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 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_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") expect(page).to have_button("Search")
end end
@ -105,7 +105,7 @@ RSpec.describe "Schemes scheme Features" do
context "when I search for a specific scheme" 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 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_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") expect(page).to have_button("Search")
end end

Loading…
Cancel
Save