Browse Source

update inset text

pull/1035/head
Kat 4 years ago
parent
commit
bd0ec82c6d
  1. 2
      app/models/form/lettings/questions/tenancy_start_date.rb
  2. 2
      spec/requests/lettings_logs_controller_spec.rb

2
app/models/form/lettings/questions/tenancy_start_date.rb

@ -5,7 +5,7 @@ class Form::Lettings::Questions::TenancyStartDate < ::Form::Question
@check_answer_label = "Tenancy start date"
@header = "What is the tenancy start date?"
@type = "date"
@unresolved_hint_text = "Check the tenancy start date is correct"
@unresolved_hint_text = "Some scheme details have changed, and now this log needs updating. Check that the tenancy start date is correct."
@page = page
end
end

2
spec/requests/lettings_logs_controller_spec.rb

@ -896,7 +896,7 @@ RSpec.describe LettingsLogsController, type: :request do
it "displays inset hint text on the tenancy start date question" do
get "/lettings-logs/#{affected_lettings_log.id}/tenancy-start-date", headers:, params: {}
expect(page).to have_content("Check the tenancy start date is correct")
expect(page).to have_content("Some scheme details have changed, and now this log needs updating. Check that the tenancy start date is correct.")
end
end
end

Loading…
Cancel
Save