-
Notifications
You must be signed in to change notification settings - Fork 166
LG-8577: Prefill user's mobile number for hybrid docauth #7762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
6c356de
5c61745
edc26d5
339abf0
b683228
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,8 @@ | |
|
|
||
| <p><%= t('doc_auth.instructions.send_sms') %></p> | ||
| <%= simple_form_for( | ||
| :doc_auth, | ||
| idv_phone_form, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just to check: the only reason we're building the form is so we can pass it something that responds to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I based this usage on |
||
| as: :doc_auth, | ||
| url: url_for, | ||
| method: 'PUT', | ||
| html: { autocomplete: 'off' }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -68,6 +68,16 @@ | |||||||||
| and_return(irs_attempts_api_tracker) | ||||||||||
| end | ||||||||||
|
|
||||||||||
| describe '#extra_view_variables' do | ||||||||||
| it 'includes form' do | ||||||||||
| expect(step.extra_view_variables).to include( | ||||||||||
| { | ||||||||||
| idv_phone_form: be_an_instance_of(Idv::PhoneForm), | ||||||||||
| }, | ||||||||||
|
Comment on lines
+74
to
+76
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Technically the curly braces could be optional, though I don't have a strong preference in case you think they help readability.
Suggested change
|
||||||||||
| ) | ||||||||||
| end | ||||||||||
| end | ||||||||||
|
|
||||||||||
| describe 'the return value from #call' do | ||||||||||
| let(:response) { step.call } | ||||||||||
|
|
||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels kind of yucky, but I think is the way to do this until we pull the hybrid flow out of the FSM?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think if we were invested in improving FSM, it could be nice to somehow provide a form object through the FSM machinery, but it seems like we're moving away from that, and this is the otherwise standard way to make values available to the view, so seems fine to me.