LG-16050 Add submit logic to IPP choose id type controller#12115
LG-16050 Add submit logic to IPP choose id type controller#12115shanechesnutt-ft merged 1 commit intomainfrom
Conversation
d631579 to
4efb50e
Compare
|
Nice work Shane! I did a bunch of testing and this looks great. Here are my notes. Scenario: User selects passport option on the choose ID type page Scenario: User selects state-id option on the choose ID type page Scenario: User selects no ID type o the choose ID type page Looking at the AC List in your ticket Extra Testing |
lmgeorge
left a comment
There was a problem hiding this comment.
Overall, looks good. Only real change needed is the selected_id_type.
There was a problem hiding this comment.
issue: spelling
| context 'when the paremeters has allowed params' do | |
| context 'when the parameters has allowed params' do |
There was a problem hiding this comment.
nit: Ruby docs prefix method names with # not .
| describe '.chosen_id_type' do | |
| describe '#chosen_id_type' do |
There was a problem hiding this comment.
issue: let's align this language with other parts of the code (see: idv/document_capture_concern.rb#L139). In this case, we are moving away from drivers_license for internal use. (I may have missed this in previous PRs, but we should try to rectify the language where we can.)
| 'drivers_license' => idv_in_person_state_id_url, | |
| 'state_id' => idv_in_person_state_id_url, |
There was a problem hiding this comment.
I agree with this change. I just need to get approval from @amirbey for this change. It was an existing thing in the ChooseIdTypeConcern that came from existing code.
There was a problem hiding this comment.
We decided to follow up in a separate work item to unblock this one:
https://cm-jira.usa.gov/browse/LG-16162
There was a problem hiding this comment.
I decided to make a separate task for this comment. https://cm-jira.usa.gov/browse/LG-16162
There was a problem hiding this comment.
fix: grammar
| it 'does not returns invalid choose_id_type form params' do | |
| it 'does not return invalid choose_id_type form params' do |
There was a problem hiding this comment.
| let(:id_type) { 'drivers_license' } | |
| let(:id_type) { 'state_id' } |
4efb50e to
319f63f
Compare
changelog: Upcoming Features, In-person proofing, Add submit logic to IPP choose ID type controller
319f63f to
9ac8c85
Compare
🎫 Ticket
Link to the relevant ticket:
LG-16050
🛠 Summary of changes
Added submit logic to the in-person choose id type controller
📜 Testing Plan
Setup: Ensure the following environment variables are set for passport to work in IPP.
Scenario: User selects passport option on the choose ID type page
Scenario: User selects state-id option on the choose ID type page
Scenario: User selects no ID type o the choose ID type page
👀 Screenshots
Choose ID type page
Choose ID type page: State-ID selected
Choose ID type page: Passport selected
Choose ID type page: Error (No Selection)