diff --git a/app/views/check_errors/confirm_clear_answer.html.erb b/app/views/check_errors/confirm_clear_answer.html.erb index 1ef8bc719..499362fa5 100644 --- a/app/views/check_errors/confirm_clear_answer.html.erb +++ b/app/views/check_errors/confirm_clear_answer.html.erb @@ -8,7 +8,7 @@ <%= content_for(:title) %> - <%= govuk_warning_text(text: "This action is permanent") %> + <%= govuk_warning_text(text: "Dependent answers related to this question may also get cleared. You will not be able to undo this action") %> <%= form_with model: @log, url: send("#{@log.model_name.param_key}_#{@page.id}_path", @log), method: "post", local: true do |f| %> <% @related_question_ids.each do |id| %> diff --git a/spec/requests/check_errors_controller_spec.rb b/spec/requests/check_errors_controller_spec.rb index 1baaf956f..bcecdaccb 100644 --- a/spec/requests/check_errors_controller_spec.rb +++ b/spec/requests/check_errors_controller_spec.rb @@ -145,7 +145,7 @@ RSpec.describe CheckErrorsController, type: :request do it "displays correct clear links" do expect(page).to have_content("Are you sure you want to clear Number of household members?") - expect(page).to have_content("This action is permanent") + expect(page).to have_content("Dependent answers related to this question may also get cleared. You will not be able to undo this action") expect(page).to have_link("Cancel") expect(page).to have_button("Confirm and continue") end @@ -172,7 +172,7 @@ RSpec.describe CheckErrorsController, type: :request do it "displays correct clear links" do expect(page).to have_content("Are you sure you want to clear Buyer 1’s gross annual income?") - expect(page).to have_content("This action is permanent") + expect(page).to have_content("Dependent answers related to this question may also get cleared. You will not be able to undo this action") expect(page).to have_link("Cancel") expect(page).to have_button("Confirm and continue") end