Browse Source

changes to informative/hint text

pull/372/head
MadeTech Dushan 3 years ago committed by baarkerlounger
parent
commit
ae35afec7a
  1. 2
      app/helpers/interuption_screen_helper.rb
  2. 2
      config/locales/en.yml
  3. 6
      spec/helpers/interuption_screen_helper_spec.rb

2
app/helpers/interuption_screen_helper.rb

@ -11,6 +11,6 @@ module InteruptionScreenHelper
rescue StandardError rescue StandardError
return "" return ""
end end
"<p class='govuk-body'>#{translation}</p>".html_safe "#{translation}".html_safe
end end
end end

2
config/locales/en.yml

@ -144,7 +144,7 @@ en:
soft_validations: soft_validations:
net_income: net_income:
hint_text: "You told us the main tenant's working situation is: <strong>%{ecstat1}</strong><br><br>The household income you have entered is <strong>%{earnings}</strong>" hint_text: "<p class='govuk-body'>You told us the main tenant's working situation is: <strong>%{ecstat1}</strong></p><p class='govuk-body'>The household income you have entered is <strong>%{earnings}</strong></p>"
in_soft_min_range: in_soft_min_range:
message: "Net income is lower than expected based on the main tenant’s working situation. Are you sure this is correct?" message: "Net income is lower than expected based on the main tenant’s working situation. Are you sure this is correct?"
in_soft_max_range: in_soft_max_range:

6
spec/helpers/interuption_screen_helper_spec.rb

@ -25,7 +25,7 @@ RSpec.describe InteruptionScreenHelper do
"argument" => %w[ecstat1 earnings], "argument" => %w[ecstat1 earnings],
} }
expect(display_informative_text(informative_text, case_log)) expect(display_informative_text(informative_text, case_log))
.to eq("<p class='govuk-body'>You told us the main tenant's working situation is: <strong>Full-time – 30 hours or more</strong><br><br>The household income you have entered is <strong>£750.00 every week</strong></p>") .to eq("<p class='govuk-body'>You told us the main tenant's working situation is: <strong>Full-time – 30 hours or more</strong></p><p class='govuk-body'>The household income you have entered is <strong>£750.00 every week</strong></p>")
end end
end end
@ -36,7 +36,7 @@ RSpec.describe InteruptionScreenHelper do
"argument" => %w[ecstat1], "argument" => %w[ecstat1],
} }
expect(display_informative_text(informative_text, case_log)) expect(display_informative_text(informative_text, case_log))
.to eq("<p class='govuk-body'>This is based on the tenant’s work situation: Full-time – 30 hours or more</p>") .to eq("This is based on the tenant’s work situation: Full-time – 30 hours or more")
end end
end end
end end
@ -48,7 +48,7 @@ RSpec.describe InteruptionScreenHelper do
"argument" => %w[ecstat1 earnings], "argument" => %w[ecstat1 earnings],
} }
expect(display_informative_text(informative_text, case_log)) expect(display_informative_text(informative_text, case_log))
.to eq("<p class='govuk-body'>This is based on the tenant’s work situation: Full-time – 30 hours or more</p>") .to eq("This is based on the tenant’s work situation: Full-time – 30 hours or more")
end end
end end

Loading…
Cancel
Save