-
Notifications
You must be signed in to change notification settings - Fork 166
Remove the USPS option during IAL2 strict #6277
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
4e79688
Remove the USPS option during IAL2 strict
jmhooper 2fa0983
cleanup
jmhooper 7a5dc90
delint
jmhooper 7d49f9f
changelog, Upcoming features, The ability to disable the option to pr…
jmhooper 33f47c4
changelog, Upcoming Features, Proofing, The ability to disable the op…
jmhooper 97d3313
changelog: Upcoming Features, Proofing, The ability to disable the op…
jmhooper 74ee02e
Merge branch 'main' into jmhooper-remove-usps-step-during-ial2-strict
jmhooper 9d4c706
rename feature flag
jmhooper 9976e91
fix memoization
jmhooper 87b08a2
delint
jmhooper 38e8ac7
try not memoizing
jmhooper 93eb0f0
different approach
jmhooper 608dc38
delint again
jmhooper File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
spec/features/idv/strict_ial2/usps_upload_disallowed_spec.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| require 'rails_helper' | ||
|
|
||
| feature 'Strict IAL2 with usps upload disallowed' do | ||
| include IdvHelper | ||
| include OidcAuthHelper | ||
| include IdvHelper | ||
| include IdvStepHelper | ||
|
|
||
| before do | ||
| allow(IdentityConfig.store).to receive(:liveness_checking_enabled).and_return(true) | ||
| allow(IdentityConfig.store).to receive( | ||
| :gpo_allowed_for_strict_ial2, | ||
| ).and_return(false) | ||
| end | ||
|
|
||
| it 'does not allow the user to select the letter flow during proofing' do | ||
| user = create(:user, :signed_up) | ||
| visit_idp_from_oidc_sp_with_ial2_strict | ||
| sign_in_user(user) | ||
| fill_in_code_with_last_phone_otp | ||
| click_submit_default | ||
| complete_idv_steps_before_phone_step | ||
|
|
||
| # Link is not present on the phone page | ||
| expect(page).to_not have_content(t('idv.troubleshooting.options.verify_by_mail')) | ||
|
|
||
| # Link is not present on the OTP delivery selection page | ||
| fill_out_phone_form_ok('7032231234') | ||
| click_idv_continue | ||
| expect(page).to_not have_content(t('idv.troubleshooting.options.verify_by_mail')) | ||
|
|
||
| # Link is not visible on the OTP entry page | ||
| choose_idv_otp_delivery_method_sms | ||
| expect(page).to_not have_content(t('idv.troubleshooting.options.verify_by_mail')) | ||
|
|
||
| # Link is not visible on error or warning page | ||
| visit idv_phone_errors_warning_path | ||
| expect(page).to_not have_content(t('idv.troubleshooting.options.verify_by_mail')) | ||
| visit idv_phone_errors_jobfail_path | ||
| expect(page).to_not have_content(t('idv.troubleshooting.options.verify_by_mail')) | ||
| visit idv_phone_errors_timeout_path | ||
| expect(page).to_not have_content(t('idv.troubleshooting.options.verify_by_mail')) | ||
| visit idv_phone_errors_failure_path | ||
| expect(page).to_not have_content(t('idv.troubleshooting.options.verify_by_mail')) | ||
|
|
||
| # Visiting the GPO page redirects | ||
| visit idv_gpo_path | ||
| expect(current_path).to eq(idv_phone_path) | ||
| end | ||
|
|
||
| it 'does not prompt a pending user for a mailed code' do | ||
| user = create( | ||
| :profile, | ||
| deactivation_reason: :verification_pending, | ||
| pii: { first_name: 'John', ssn: '111223333' }, | ||
| ).user | ||
|
|
||
| visit_idp_from_oidc_sp_with_ial2_strict | ||
| sign_in_user(user) | ||
| fill_in_code_with_last_phone_otp | ||
| click_submit_default | ||
|
|
||
| # Directed to the start of the proofing flow instead of GPO code verification | ||
| expect(current_path).to eq(idv_doc_auth_step_path(step: :welcome)) | ||
|
|
||
| complete_all_doc_auth_steps | ||
| click_continue | ||
| fill_in 'Password', with: user.password | ||
| click_continue | ||
| click_acknowledge_personal_key | ||
| click_agree_and_continue | ||
|
|
||
| expect(current_url).to start_with('http://localhost:7654/auth/result') | ||
| expect(user.active_profile.strict_ial2_proofed?).to be_truthy | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Same thing existed previously, but won't this reassign the instance variable if called repeatedly while still
false?Should it be... ?
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.
Yep, happy to fix!
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.
I ended up going with this because of some quirks with the
&&=operator: