Browse Source

content changes

pull/372/head
MadeTech Dushan 3 years ago committed by baarkerlounger
parent
commit
190a5c6446
  1. 2
      config/locales/en.yml
  2. 2
      spec/features/form/validations_spec.rb
  3. 2
      spec/helpers/interuption_screen_helper_spec.rb

2
config/locales/en.yml

@ -144,7 +144,7 @@ en:
soft_validations: soft_validations:
net_income: net_income:
hint_text: "This is based on the tenant’s work situation: <strong>%{ecstat1}</strong><br><br>The household income you have entered is <strong>%{earnings}</strong>" 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>"
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:

2
spec/features/form/validations_spec.rb

@ -131,7 +131,7 @@ RSpec.describe "validations" do
click_button("Save and continue") click_button("Save and continue")
expect(page).to have_current_path("/logs/#{case_log.id}/net-income-value-check") expect(page).to have_current_path("/logs/#{case_log.id}/net-income-value-check")
expect(page).to have_content("Net income is outside the expected range based on the main tenant’s working situation") expect(page).to have_content("Net income is outside the expected range based on the main tenant’s working situation")
expect(page).to have_content("This is based on the tenant’s work situation: Full-time – 30 hours or more") expect(page).to have_content("You told us the main tenant's working situation is: Full-time – 30 hours or more")
expect(page).to have_content("The household income you have entered is £750.00 every week") expect(page).to have_content("The household income you have entered is £750.00 every week")
choose("case-log-net-income-value-check-0-field", allow_label_click: true) choose("case-log-net-income-value-check-0-field", allow_label_click: true)
click_button("Save and continue") click_button("Save and continue")

2
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'>This is based on the tenant’s work situation: <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><br><br>The household income you have entered is <strong>£750.00 every week</strong></p>")
end end
end end

Loading…
Cancel
Save