Skip to content

LG-9568 link sent controller#8310

Merged
soniaconnolly merged 23 commits intomainfrom
sonia-lg-9568-link-sent-controller
May 10, 2023
Merged

LG-9568 link sent controller#8310
soniaconnolly merged 23 commits intomainfrom
sonia-lg-9568-link-sent-controller

Conversation

@soniaconnolly
Copy link
Contributor

@soniaconnolly soniaconnolly commented Apr 28, 2023

🎫 Ticket

LG-9494

🛠 Summary of changes

New LinkSentController behind feature flag will replace LinkSentStep.

Note: Continue button is visible when link sent polling is off, which is only in tests.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Create account
  • Start IdV
  • Choose "Send Link" on hybrid handoff step
  • Note that LinkSent URL is /verify/link_sent (without doc_auth)
  • Complete hybrid flow, either by texting your phone or by using /test/telephony to open the texted link in a different browser. (If you open it in another window of the same browser, it logs you out, last time I tried it.)
  • Note that LinkSent page automatically redirects to Ssn page when hybrid flow is complete
  • Enter Ssn and click Continue on VerifyInfo page to confirm that documents are being processed successfully.

👀 Screenshots

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

New view:

LinkSent

soniaconnolly and others added 19 commits May 5, 2023 14:12
And change mark_step_complete methods

Co-authored-by: Eric Gade <eric.gade@gsa.gov>
Co-authored-by: Amir Reavis-Bey <amir.reavis-bey@gsa.gov>
Use clear_and_fill_in feature spec helper
idv_session is different inside and outside the FSM, so use the flow session to transmit
:phone_for_mobile_flow from UploadStep to LinkSentController. This can be put in idv_session
when the UploadStep is removed from FSM.
It gets a javascript error relating to explicitly navigating to the new page.
Now we can test with polling enabled and make sure the Continue button isn't shown.
step_url has to be a symbol, not a url
When not included, _back.html.erb defaults to referrer, which can null and cause an error on
a direct visit to the page.

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
The error about leaving the page is showing up in unrelated specs. See if this fixes that.
if there is no PII and flow_path is set to hybrid (and feature flag is enabled).
Otherwise still redirect to idv_doc_auth_url and let the FSM figure out where to go.
…e spec

When document capture is not being done in a separate browser window, LinkSent
shows a warning not to leave the page, which was causing a problem in a downstream
spec. Instead of trying to test polling in isolation, add one line to an existing
full spec.

Co-authored-by: John Maxwell <john.maxwell@gsa.gov>
Changelog: Internal, Identity Verification dismantle Flow State Machine, new LinkSentController (feature flagged)
@soniaconnolly soniaconnolly force-pushed the sonia-lg-9568-link-sent-controller branch from c8a55e5 to 758f8d7 Compare May 5, 2023 21:13
@soniaconnolly soniaconnolly requested a review from a team May 10, 2023 15:29
@soniaconnolly soniaconnolly merged commit fd63a3e into main May 10, 2023
@soniaconnolly soniaconnolly deleted the sonia-lg-9568-link-sent-controller branch May 10, 2023 18:46
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.

4 participants