|
|
|
@ -58,6 +58,11 @@ RSpec.describe SchemesController, type: :request do
|
|
|
|
|
expect(CGI.unescape_html(response.body)).to match("<strong>#{schemes.count}</strong> total schemes.") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has hidden accebility field with description" do |
|
|
|
|
expected_field = "<h2 class=\"govuk-visually-hidden\">Supported housing services</h2>" |
|
|
|
|
expect(CGI.unescape_html(response.body)).to include(expected_field) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "when paginating over 20 results" do |
|
|
|
|
let(:total_schemes_count) { Scheme.count } |
|
|
|
|
|
|
|
|
|