Browse Source

CLDC-2863: remove full stop from service moved page title

pull/2022/head
Sam Seed 3 years ago
parent
commit
7fcf07bb59
  1. 2
      app/views/maintenance/service_moved.html.erb
  2. 8
      spec/requests/maintenance_controller_spec.rb

2
app/views/maintenance/service_moved.html.erb

@ -1,5 +1,5 @@
<h1 class="govuk-heading-l govuk-!-width-two-thirds"> <h1 class="govuk-heading-l govuk-!-width-two-thirds">
The URL for this service has changed. The URL for this service has changed
</h1> </h1>
<div class="govuk-grid-row"> <div class="govuk-grid-row">

8
spec/requests/maintenance_controller_spec.rb

@ -21,7 +21,7 @@ RSpec.describe MaintenanceController, type: :request do
it "redirects the user to the service moved page" do it "redirects the user to the service moved page" do
expect(response).to redirect_to(service_moved_path) expect(response).to redirect_to(service_moved_path)
follow_redirect! follow_redirect!
expect(page).to have_content("The URL for this service has changed.") expect(page).to have_content("The URL for this service has changed")
end end
it "the cookie banner is visible" do it "the cookie banner is visible" do
@ -37,7 +37,7 @@ RSpec.describe MaintenanceController, type: :request do
it "keeps the user on the service moved page" do it "keeps the user on the service moved page" do
expect(response).not_to redirect_to(service_moved_path) expect(response).not_to redirect_to(service_moved_path)
expect(page).to have_content("The URL for this service has changed.") expect(page).to have_content("The URL for this service has changed")
end end
it "the cookie banner is visible" do it "the cookie banner is visible" do
@ -98,7 +98,7 @@ RSpec.describe MaintenanceController, type: :request do
it "redirects the user to the service moved page" do it "redirects the user to the service moved page" do
expect(response).to redirect_to(service_moved_path) expect(response).to redirect_to(service_moved_path)
follow_redirect! follow_redirect!
expect(page).to have_content("The URL for this service has changed.") expect(page).to have_content("The URL for this service has changed")
end end
it "the cookie banner is visible" do it "the cookie banner is visible" do
@ -114,7 +114,7 @@ RSpec.describe MaintenanceController, type: :request do
it "keeps the user on the service moved page" do it "keeps the user on the service moved page" do
expect(response).not_to redirect_to(service_moved_path) expect(response).not_to redirect_to(service_moved_path)
expect(page).to have_content("The URL for this service has changed.") expect(page).to have_content("The URL for this service has changed")
end end
it "the cookie banner is visible" do it "the cookie banner is visible" do

Loading…
Cancel
Save