Skip to content

LG-12268: Use Department of State translations for Face Match Fail#10298

Merged
eileen-nava merged 3 commits intomainfrom
em/12268-DOS-translations-FaceMatchFail
Mar 25, 2024
Merged

LG-12268: Use Department of State translations for Face Match Fail#10298
eileen-nava merged 3 commits intomainfrom
em/12268-DOS-translations-FaceMatchFail

Conversation

@eileen-nava
Copy link
Copy Markdown
Contributor

@eileen-nava eileen-nava commented Mar 25, 2024

🎫 Ticket

LG-12268: Implement Department of State translation for in-line error message for FaceMatchResult: Fail

🛠 Summary of changes

  1. Update Spanish and French headings for scenario where the FaceMatchResult is Fail.
  2. Update English, Spanish, and French body text for scenario where the FaceMatchResult is Fail.
  3. For related context, see PR LG-12080: Error Messages for Facematch Fail #10042, which implemented Gengo translations.

📜 Testing Plan

To test on desktop...

  • In your local application.yml, set the below variables
  doc_auth_selfie_capture_enabled: true
  doc_auth_selfie_desktop_test_mode: true
  • Be sure to follow the below steps for English, French, and Spanish
  • Login with biometric comparison required at /test/oidc/login
  • Navigate to document capture
  • Upload the file test_selfie_with_face_match_fail.yml in all three (front/back/selfie) fields
  • After you click "submit," ensure that the heading text and body text match what is shown in the screenshots below.

👀 Screenshots

English:

12268FaceMatchFailEnglish

Spanish:

12268FaceMatchFailSpanish

French:

12268FaceMatchFailFrench

@eileen-nava eileen-nava marked this pull request as ready for review March 25, 2024 15:10
@eileen-nava eileen-nava requested review from a team, charleyf and kellular and removed request for a team March 25, 2024 15:12
message = strip_tags(t('errors.doc_auth.selfie_fail_heading'))
expect(page).to have_content(message)
detail_message = strip_tags(t('doc_auth.errors.alerts.selfie_poor_quality'))
detail_message = strip_tags(t('doc_auth.errors.alerts.selfie_not_live'))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before updating translations, the text for 'doc_auth.errors.alerts.selfie_poor_quality' and 'doc_auth.errors.alerts.selfie_not_live' were the same. Since they are no longer the same, I had to update this spec.

Copy link
Copy Markdown
Contributor

@amirbey amirbey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown

@kellular kellular left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double-checked the updates with the translations I got back DOS. This PR looks good!

@eileen-nava eileen-nava merged commit 26b0aa1 into main Mar 25, 2024
@eileen-nava eileen-nava deleted the em/12268-DOS-translations-FaceMatchFail branch March 25, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants