Skip to content

Commit

Permalink
make task wording and note wording more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
alkesh committed Oct 9, 2024
1 parent fbe2c50 commit 7593be9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def create_task(match:, passed: nil)

def note_body(match:)
prefix = "[SLC Student loan plan]"
return "#{prefix} - No data" unless match
return "#{prefix} - SLC data checked, no matching entry found" unless match

if slc_repaying_plan_types
"#{prefix} - Matched - has a student loan"
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/tasks/student_loan_plan.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<%= task_status_content_tag(status_colour: "grey", status: "Incomplete") %>
</p>
<p class="govuk-body">
This task has not been checked against Student Loan Company data yet.
No matching entry has been found in the Student Loan Company data yet.
</p>
</div>
<% end %>
Expand Down
6 changes: 2 additions & 4 deletions spec/features/further_education_payments/student_loan_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@

sign_in_as_service_operator

visit admin_claims_path
find("a[href='#{admin_claim_tasks_path(claim)}']").click
visit admin_claim_tasks_path(claim)
within "li.student_loan_plan" do
expect(page).to have_content "Incomplete"
end
Expand All @@ -32,8 +31,7 @@

sign_in_as_service_operator

visit admin_claims_path
find("a[href='#{admin_claim_tasks_path(claim)}']").click
visit admin_claim_tasks_path(claim)
expect(page).not_to have_content "Student loan plan"
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ module ClaimVerifiers
let(:submitted_using_slc_data) { false }

context "when there is no student loan data for the claim" do
let(:expected_note) { "[SLC Student loan plan] - No data" }
let(:expected_note) { "[SLC Student loan plan] - SLC data checked, no matching entry found" }

it_behaves_like :creating_a_note_but_no_task
end
Expand Down Expand Up @@ -149,7 +149,7 @@ module ClaimVerifiers
let(:submitted_using_slc_data) { nil }

context "when there is no student loan data for the claim" do
let(:expected_note) { "[SLC Student loan plan] - No data" }
let(:expected_note) { "[SLC Student loan plan] - SLC data checked, no matching entry found" }

it_behaves_like :creating_a_note_but_no_task
end
Expand Down
2 changes: 0 additions & 2 deletions spec/support/steps/further_education_journey.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ def when_further_education_journey_ready_to_submit
choose "No"
click_on "Continue"

choose "Personal bank account"
click_on "Continue"
fill_in "Name on your account", with: "Jo Bloggs"
fill_in "Sort code", with: "123456"
fill_in "Account number", with: "87654321"
Expand Down

0 comments on commit 7593be9

Please sign in to comment.