Skip to content

LG-11803 Add Cancel button to the How to Verify Page#10330

Merged
gina-yamada merged 5 commits intomainfrom
yamada/LG-11803-Add-Cancel-To-How-To-Verify-View
Mar 28, 2024
Merged

LG-11803 Add Cancel button to the How to Verify Page#10330
gina-yamada merged 5 commits intomainfrom
yamada/LG-11803-Add-Cancel-To-How-To-Verify-View

Conversation

@gina-yamada
Copy link
Contributor

@gina-yamada gina-yamada commented Mar 27, 2024

🎫 Ticket

LG-11803 Add 'Cancel' button to the "How To Verify" page

🛠 Summary of changes

  • Added a cancel link to the How to Verify Page
  • Added specs

📜 Testing Plan

  • Step 1 Ensure these two config vars are set in application.yml:
    in_person_proofing_opt_in_enabled: true and in_person_proofing_enabled: true
  • Step 2 You will need to test using the Sinatra App (where SP has opted into IPP)- See instructions here
  • Step 3 Once you are on the How to Verify View- confirm that the Cancel link is on the bottom of the page.
  • Step 4 Click Cancel. Pick No, keep going once you see Cancel verifying your identity? Confirm that you are taken back to /verify/how_to_verify
  • Step 5 Click Cancel. Pick Start Over. Confirm you are taken back to the /verify/welcome.

🎥 A Short Film

cancel.button.on.how.to.verify.mov

📷 Screenshot

Spanish and French Translations of Cancel Link

Screenshot 2024-03-28 at 8 06 10 AM

Screenshot 2024-03-28 at 8 06 19 AM

@gina-yamada gina-yamada requested review from a team, rutvigupta-design and svalexander and removed request for a team March 27, 2024 22:11
end

context 'renders the show template with' do
it 'a title and info text' do
Copy link
Contributor

Choose a reason for hiding this comment

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

nit - can we change this to something like it 'has expected title and info text' so it reads more naturally?

Copy link
Contributor Author

@gina-yamada gina-yamada Mar 27, 2024

Choose a reason for hiding this comment

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

@svalexander Here is how it currently reads when you run the specs

Screenshot 2024-03-27 at 4 38 19 PM

Existing: renders the show template with a title and info text.
Your suggestion: renders the show template with has expected title and info text.

I initially had expected in each but thought about it being implicitly implied because there was a test for it. I am willing to change it but wondering with this extra information if you'd still like to see that change.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh lol yes you're right, ignore my comments about updating language

expect(rendered).to have_content(t('doc_auth.info.how_to_verify'))
end

it 'two options for verifying your identity' do
Copy link
Contributor

Choose a reason for hiding this comment

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

this is similar enough to the above test that I don't think it's needed

expect(rendered).to have_content(t('doc_auth.headings.verify_at_post_office'))
end

it 'a continue button' do
Copy link
Contributor

Choose a reason for hiding this comment

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

nit - can we change this to something like 'it 'has a continue button'?

Copy link
Contributor

Choose a reason for hiding this comment

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

similar thought for the other 2 tests that proceed this

Copy link
Contributor

Choose a reason for hiding this comment

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

Ignore this comment based on the screenshot you provided above

@svalexander
Copy link
Contributor

works as expected when manually testing, just a few small nits around the spec file

@carmenrosalop carmenrosalop requested review from carmenrosalop and removed request for rutvigupta-design March 27, 2024 23:01
Copy link

@carmenrosalop carmenrosalop left a comment

Choose a reason for hiding this comment

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

LGTM!

@gina-yamada gina-yamada merged commit 1d016e4 into main Mar 28, 2024
@gina-yamada gina-yamada deleted the yamada/LG-11803-Add-Cancel-To-How-To-Verify-View branch March 28, 2024 19:03
@aduth aduth mentioned this pull request Apr 2, 2024
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