Skip to content

LG-8969: Update error content for po search#7928

Merged
gina-yamada merged 8 commits intomainfrom
yamada/LG-8969-update-for-temp-500-err-on-po-search
Mar 7, 2023
Merged

LG-8969: Update error content for po search#7928
gina-yamada merged 8 commits intomainfrom
yamada/LG-8969-update-for-temp-500-err-on-po-search

Conversation

@gina-yamada
Copy link
Contributor

@gina-yamada gina-yamada commented Mar 6, 2023

🎫 Ticket

LG-8969

🛠 Summary of changes

  • Update error content for PO search (in English, Spanish, and French)
  • Update tests

📜 Testing Plan

  • Running locally, you can throw an error in this file & method: app/services/usps_in_person_proofing/mock/proofer.rb for method: request_facilities
  • run npm test app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.spec.tsx - all 755 tests are passing (including the ones I edited- see screenshots in Files changed)

Flow

Create an account or sign in
Go to /verify
Click Continue on verify/doc_auth/welcome
Check radio button and then Continue on /verify/doc_auth/agreement
Click upload from your computer on /verify/doc_auth/upload
Upload and Submit docs to fail ID verification
Click Try in person on /verify/doc_auth/document_capture
Enter any address in the input field and Search on /verify/doc_auth/document_capture#location

👀 Screenshots

If relevant, include a screenshot or screen capture of the changes.

Before: There was an internal error processing your request. Please try again.

Screenshot 2023-03-06 at 1 45 21 PM

After: We are having technical difficulties at the moment. Try searching for a Post Office again. If this issue continues, come back later.

Screenshot 2023-03-06 at 9 33 27 AM

Screenshot 2023-03-06 at 9 34 40 AM

Screenshot 2023-03-06 at 9 33 57 AM

@gina-yamada gina-yamada marked this pull request as draft March 6, 2023 17:44
@gina-yamada gina-yamada changed the title Yamada/lg 8969 update for temp 500 err on po search LG-8969: Update error content for po search Mar 6, 2023
@gina-yamada gina-yamada marked this pull request as ready for review March 6, 2023 20:27
@gina-yamada gina-yamada requested review from a team, JackRyan1989 and WheresHJ and removed request for a team March 6, 2023 20:34
Copy link
Contributor

@allthesignals allthesignals left a comment

Choose a reason for hiding this comment

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

lgtm!

);

const error = await findByText('idv.failure.exceptions.internal_error');
const error = await findByText('idv.failure.exceptions.post_office_search_error');
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks pretty good to me. I think these are the two tests we want to run, I'm just wondering if there are other failures we might encounter? I didn't see anything in the spec for spec/services/usps_in_person_proofing/proofer_spec.rb that would seem to indicate other failure states we might encounter, but I wanted to double check.

Copy link
Contributor

@JackRyan1989 JackRyan1989 left a comment

Choose a reason for hiding this comment

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

Small non-blocking question.

@gina-yamada
Copy link
Contributor Author

Waiting for design approval (user facing change)

exceptions:
internal_error: There was an internal error processing your request. Please try again.
link: please contact us
post_office_search_error: We are having technical difficulties at the moment.

Choose a reason for hiding this comment

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

I reviewed the screen shots and text in all languages. Looks good to me!

@gina-yamada gina-yamada merged commit bcf2110 into main Mar 7, 2023
@gina-yamada gina-yamada deleted the yamada/LG-8969-update-for-temp-500-err-on-po-search branch March 7, 2023 15:53
@jmdembe jmdembe mentioned this pull request Mar 9, 2023
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.

5 participants