From 9e932602e08e497a591e8f02b178c5217d54e86a Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 4 Jan 2024 17:09:30 +0000 Subject: [PATCH] Link to guidance from start page --- app/views/start/index.html.erb | 1 + spec/requests/start_controller_spec.rb | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/start/index.html.erb b/app/views/start/index.html.erb index 3c10232d2..d6ec6d392 100644 --- a/app/views/start/index.html.erb +++ b/app/views/start/index.html.erb @@ -20,6 +20,7 @@

Use your account details to sign in.

If you need to set up a new account, speak to your organisation’s CORE data coordinator. If you don’t know who that is, <%= govuk_link_to("contact the helpdesk", GlobalConstants::HELPDESK_URL) %>.

You can <%= govuk_mail_to("dluhc.digital-services@levellingup.gov.uk", "request an account", subject: "CORE: Request a new account") %> if your organisation doesn’t have one.

+

<%= govuk_link_to guidance_path do %>Guidance for submitting social housing lettings and sales data (CORE)<% end %>

diff --git a/spec/requests/start_controller_spec.rb b/spec/requests/start_controller_spec.rb index 8d78f447b..f24249749 100644 --- a/spec/requests/start_controller_spec.rb +++ b/spec/requests/start_controller_spec.rb @@ -36,10 +36,9 @@ RSpec.describe StartController, type: :request do describe "guidance page" do context "when the user is not signed in" do - it "routes user to the start in page" do - get "/guidance", headers: headers, params: {} - expect(path).to include("/") - expect(page).to have_content("Start now") + it "routes user to the guidance page" do + get "/guidance", headers:, params: {} + expect(page).to have_content("Guidance for submitting social housing lettings and sales data") end end