Browse Source

Update validation message: old persons shared ownership

pull/1584/head
Kat 3 years ago
parent
commit
17efc9beac
  1. 7
      app/models/form/sales/pages/old_persons_shared_ownership_value_check.rb
  2. 4
      config/locales/en.yml
  3. 4
      spec/models/form/sales/pages/old_persons_shared_ownership_value_check_spec.rb

7
app/models/form/sales/pages/old_persons_shared_ownership_value_check.rb

@ -7,10 +7,13 @@ class Form::Sales::Pages::OldPersonsSharedOwnershipValueCheck < ::Form::Page
},
]
@title_text = {
"translation" => "soft_validations.old_persons_shared_ownership",
"translation" => "soft_validations.old_persons_shared_ownership.title_text",
"arguments" => [],
}
@informative_text = {
"translation" => "soft_validations.old_persons_shared_ownership.hint_text",
"arguments" => [],
}
@informative_text = {}
end
def questions

4
config/locales/en.yml

@ -557,7 +557,9 @@ en:
hint_text: "This is higher than we would expect."
shared_ownership_deposit:
title_text: "Mortgage, deposit and cash discount total should equal %{expected_shared_ownership_deposit_value}"
old_persons_shared_ownership: "At least one buyer should be aged over 64 for Older persons’ shared ownership scheme"
old_persons_shared_ownership:
title_text: "You told us the buyer is using the Older Persons Shared Ownership scheme."
hint_text: "At least one buyer must be aged 65 years and over to use this scheme."
staircase_bought_seems_high:
title_text: "You told us that %{percentage}% was bought in this staircasing transaction."
hint_text: "Most staircasing transactions are less than 50%"

4
spec/models/form/sales/pages/old_persons_shared_ownership_value_check_spec.rb

@ -33,13 +33,13 @@ RSpec.describe Form::Sales::Pages::OldPersonsSharedOwnershipValueCheck, type: :m
it "has the correct title_text" do
expect(page.title_text).to eq({
"translation" => "soft_validations.old_persons_shared_ownership",
"translation" => "soft_validations.old_persons_shared_ownership.title_text",
"arguments" => [],
})
end
it "has the correct informative_text" do
expect(page.informative_text).to eq({})
expect(page.informative_text).to eq({ "arguments" => [], "translation" => "soft_validations.old_persons_shared_ownership.hint_text" })
end
it "has the correct interruption_screen_question_ids" do

Loading…
Cancel
Save