Skip to content

Commit

Permalink
Merge pull request #3339 from DFE-Digital/CAPT-1855/dqt-claimant-iden…
Browse files Browse the repository at this point in the history
…tity-false-match

Don't show DQT match if DQT record not found
  • Loading branch information
rjlynch authored Nov 1, 2024
2 parents 8e8c405 + a60cf73 commit 48308cf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/tasks/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<%
I18n.t(
"#{translation}.body",
"#{translation}.body.match.#{f.object.claim_verifier_match.presence || 'nil'}",
default: nil,
link: link_to(
I18n.t("#{translation}.notes"),
Expand Down
12 changes: 10 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,11 @@ en:
task_questions:
identity_confirmation:
title: "Did %{claim_full_name} submit the claim?"
body: "The claimant’s identity matches DQT records. See %{link}."
body:
match:
none: "No DQT record found. See %{link}."
any: "The claimant’s identity matches DQT records. See %{link}."
all: "The claimant’s identity matches DQT records. See %{link}."
notes: "notes"
qualifications:
title:
Expand Down Expand Up @@ -661,7 +665,11 @@ en:
title: "Does the claimant’s current school match the above information from their claim?"
identity_confirmation:
title: "Did %{claim_full_name} submit the claim?"
body: "The claimant’s identity matches DQT records. See %{link}."
body:
match:
none: "No DQT record found. See %{link}."
any: "The claimant’s identity matches DQT records. See %{link}."
all: "The claimant’s identity matches DQT records. See %{link}."
notes: "notes"
qualifications:
title:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
click_on I18n.t("admin.tasks.identity_confirmation.title")

expect(page).to have_content("Did #{unverified_claim.full_name} submit the claim?")
expect(page).not_to have_content("The claimant’s identity matches DQT records.")
expect(page).to have_content(unverified_claim.eligibility.current_school.name)
expect(page).to have_content(unverified_claim.eligibility.current_school.phone_number)

Expand Down

0 comments on commit 48308cf

Please sign in to comment.