From 85dc5644546f6554198fa147d10baed135e52fb1 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Mon, 16 Dec 2024 18:29:01 +0000 Subject: [PATCH] Update request test --- spec/requests/lettings_logs_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/requests/lettings_logs_controller_spec.rb b/spec/requests/lettings_logs_controller_spec.rb index a0686efe5..55cf3d573 100644 --- a/spec/requests/lettings_logs_controller_spec.rb +++ b/spec/requests/lettings_logs_controller_spec.rb @@ -1295,9 +1295,9 @@ RSpec.describe LettingsLogsController, type: :request do expect(CGI.unescape_html(response.body)).to include("Not known") end - it "shows `you haven't answered this question` if the question wasn’t answered" do + it "shows link to answer question if the question wasn’t answered" do get "/lettings-logs/#{id}/income-and-benefits/check-answers" - expect(CGI.unescape_html(response.body)).to include("No answer provided") + expect(page).to have_link("Enter income", href: "/lettings-logs/#{id}/net-income?referrer=check_answers_new_answer", class: "govuk-link govuk-link--no-visited-state") end it "does not allow you to change the answers for previous collection year logs" do