Browse Source

Update question headers and hint texts

pull/2269/head
Kat 2 years ago
parent
commit
0ea74041a6
  1. 4
      app/models/form/sales/questions/deposit_amount.rb
  2. 2
      app/models/form/sales/questions/prevshared.rb
  3. 4
      spec/models/form/sales/questions/deposit_amount_spec.rb
  4. 2
      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
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
"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

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

@ -3,7 +3,7 @@ class Form::Sales::Questions::Prevshared < ::Form::Question
super
@id = "prevshared"
@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"
@answer_options = ANSWER_OPTIONS
@hint = "For any buyer"

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

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::DepositAmount, type: :model do
end
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
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) }
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

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

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Prevshared, type: :model do
end
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
it "has the correct check_answer_label" do

Loading…
Cancel
Save