From 190a5c64466982349d6f4ec31da904ac7c05691d Mon Sep 17 00:00:00 2001 From: MadeTech Dushan Date: Thu, 10 Mar 2022 16:14:43 +0000 Subject: [PATCH] content changes --- config/locales/en.yml | 2 +- spec/features/form/validations_spec.rb | 2 +- spec/helpers/interuption_screen_helper_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 8e32c5b0d..a13929554 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -144,7 +144,7 @@ en: soft_validations: net_income: - hint_text: "This is based on the tenant’s work situation: %{ecstat1}

The household income you have entered is %{earnings}" + hint_text: "You told us the main tenant's working situation is: %{ecstat1}

The household income you have entered is %{earnings}" 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?" in_soft_max_range: diff --git a/spec/features/form/validations_spec.rb b/spec/features/form/validations_spec.rb index 3abf4b9e7..4b51eccea 100644 --- a/spec/features/form/validations_spec.rb +++ b/spec/features/form/validations_spec.rb @@ -131,7 +131,7 @@ RSpec.describe "validations" do click_button("Save and continue") 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("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") choose("case-log-net-income-value-check-0-field", allow_label_click: true) click_button("Save and continue") diff --git a/spec/helpers/interuption_screen_helper_spec.rb b/spec/helpers/interuption_screen_helper_spec.rb index 4cd35a4ce..df394c449 100644 --- a/spec/helpers/interuption_screen_helper_spec.rb +++ b/spec/helpers/interuption_screen_helper_spec.rb @@ -25,7 +25,7 @@ RSpec.describe InteruptionScreenHelper do "argument" => %w[ecstat1 earnings], } expect(display_informative_text(informative_text, case_log)) - .to eq("

This is based on the tenant’s work situation: Full-time – 30 hours or more

The household income you have entered is £750.00 every week

") + .to eq("

You told us the main tenant's working situation is: Full-time – 30 hours or more

The household income you have entered is £750.00 every week

") end end