Browse Source

CLDC-2238 Update question headers and hint texts (#2269)

* Update question headers and hint texts

* Fix typo
pull/2289/head
kosiakkatrina 10 months ago committed by GitHub
parent
commit
9c6a06b6a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      app/models/form/sales/questions/deposit_amount.rb
  2. 4
      app/models/form/sales/questions/prevshared.rb
  3. 4
      spec/models/form/sales/questions/deposit_amount_spec.rb
  4. 4
      spec/models/form/sales/questions/prevshared_spec.rb

4
app/models/form/sales/questions/deposit_amount.rb

@ -33,9 +33,9 @@ class Form::Sales::Questions::DepositAmount < ::Form::Question
def hint_text def hint_text
if @optional if @optional
"Enter the total cash sum paid by the buyer towards the property that was not funded by the mortgage. As this is a fully staircased sale this question is optional. If you do not have the information available click save and continue" "Enter the total cash sum paid by the buyer towards the property that was not funded by the mortgage. This excludes any grant or loan. As this is a fully staircased sale this question is optional. If you do not have the information available click save and continue"
else else
"Enter the total cash sum paid by the buyer towards the property that was not funded by the mortgage" "Enter the total cash sum paid by the buyer towards the property that was not funded by the mortgage. This excludes any grant or loan"
end end
end end
end end

4
app/models/form/sales/questions/prevshared.rb

@ -3,10 +3,10 @@ class Form::Sales::Questions::Prevshared < ::Form::Question
super super
@id = "prevshared" @id = "prevshared"
@check_answer_label = "Previous property shared ownership?" @check_answer_label = "Previous property shared ownership?"
@header = "Was the previous property a shared ownership property?" @header = "Was the previous property under shared ownership?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint = "For any buyer" @hint_text = "For any buyer"
@question_number = 74 @question_number = 74
end end

4
spec/models/form/sales/questions/deposit_amount_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::DepositAmount, type: :model do
end end
it "has the correct hint" do it "has the correct hint" do
expect(question.hint_text).to eq("Enter the total cash sum paid by the buyer towards the property that was not funded by the mortgage") expect(question.hint_text).to eq("Enter the total cash sum paid by the buyer towards the property that was not funded by the mortgage. This excludes any grant or loan")
end end
it "has correct width" do it "has correct width" do
@ -55,7 +55,7 @@ RSpec.describe Form::Sales::Questions::DepositAmount, type: :model do
subject(:question) { described_class.new(question_id, question_definition, page, ownershipsch: 1, optional: true) } subject(:question) { described_class.new(question_id, question_definition, page, ownershipsch: 1, optional: true) }
it "has a correct hint_text" do it "has a correct hint_text" do
expect(question.hint_text).to eq("Enter the total cash sum paid by the buyer towards the property that was not funded by the mortgage. As this is a fully staircased sale this question is optional. If you do not have the information available click save and continue") expect(question.hint_text).to eq("Enter the total cash sum paid by the buyer towards the property that was not funded by the mortgage. This excludes any grant or loan. As this is a fully staircased sale this question is optional. If you do not have the information available click save and continue")
end end
end end
end end

4
spec/models/form/sales/questions/prevshared_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Prevshared, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Was the previous property a shared ownership property?") expect(question.header).to eq("Was the previous property under shared ownership?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do
@ -44,6 +44,6 @@ RSpec.describe Form::Sales::Questions::Prevshared, type: :model do
end end
it "has the correct hint" do it "has the correct hint" do
expect(question.hint_text).to be_nil expect(question.hint_text).to eq("For any buyer")
end end
end end

Loading…
Cancel
Save