Skip to content

LG-6193: Enable personal key step in development environment#6229

Merged
aduth merged 48 commits intomainfrom
aduth-lg-6193-wire-it-up
May 6, 2022
Merged

LG-6193: Enable personal key step in development environment#6229
aduth merged 48 commits intomainfrom
aduth-lg-6193-wire-it-up

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Apr 20, 2022

Why: So that a user can functionally complete the proofing process using the new IdV app.

Testing Instructions:

  1. Navigate to http://localhost:3000
  2. Sign in
  3. Navigate to http://localhost:3000/verify
  4. Complete proofing process up to and including the password entry step
  5. After "Continue"-ing from password entry step, observe...
    • Real personal key is shown on page
    • You can enter personal key and continue to post-proofing flow step (account page if session associated with SP, otherwise confirmation screen)

Implementation Notes:

  • We are excluding users who've opted for GPO verification until LG-6082.
  • This is still disabled in all deployed environments, but will now be enabled by default in local development

Screenshot:

localhost_3000_verify_v2_personal_key_confirm_

@aduth aduth force-pushed the aduth-lg-6193-wire-it-up branch from 6a2850f to a736ed5 Compare April 21, 2022 13:55
gem 'aws-sdk-cloudwatchlogs', require: false
gem 'brakeman', require: false
gem 'bullet', '>= 6.0.2'
gem 'capybara-webmock', git: 'https://github.com/hashrocket/capybara-webmock.git', ref: '63d790a0'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The reason this points to git is because there are unpublished changes that we need.

Specifically: hashrocket/capybara-webmock@f3d27b1

@aduth aduth force-pushed the aduth-lg-6193-wire-it-up branch from ef938e8 to a9211e3 Compare April 28, 2022 15:36
@aduth aduth force-pushed the aduth-lg-6193-wire-it-up branch from a9211e3 to 8be2414 Compare April 28, 2022 17:43
@aduth aduth changed the title LG-6193: Integrate IdV app personal key step into proofing flow LG-6193: Enable personal key step in development environment Apr 28, 2022
@aduth aduth force-pushed the aduth-lg-6193-wire-it-up branch from 8be2414 to 9fb2a18 Compare April 28, 2022 19:56
aduth added a commit that referenced this pull request May 2, 2022
…enderer

**Why**: Because the current implementation relies on the assumption that we would only ever want to show "Submit" as the label of the last button in the flow, which is not the intention, and is not compatible with the current implementation of the personal key confirmation modal in the IdV API React implementation.

Related discussion: #6229 (comment)

changelog: Upcoming Features, Identity Verification, Add personal key step screen
aduth added a commit that referenced this pull request May 2, 2022
…enderer (#6280)

* Update FormStepsButton to place choice of "Submit" or "Continue" to renderer

**Why**: Because the current implementation relies on the assumption that we would only ever want to show "Submit" as the label of the last button in the flow, which is not the intention, and is not compatible with the current implementation of the personal key confirmation modal in the IdV API React implementation.

Related discussion: #6229 (comment)

changelog: Upcoming Features, Identity Verification, Add personal key step screen

* Fix spec lingering reference to personal key confirm "Submit"
@aduth aduth force-pushed the aduth-lg-6193-wire-it-up branch from 9fb2a18 to cd982e9 Compare May 2, 2022 20:09
peggles2 pushed a commit that referenced this pull request May 3, 2022
…enderer (#6280)

* Update FormStepsButton to place choice of "Submit" or "Continue" to renderer

**Why**: Because the current implementation relies on the assumption that we would only ever want to show "Submit" as the label of the last button in the flow, which is not the intention, and is not compatible with the current implementation of the personal key confirmation modal in the IdV API React implementation.

Related discussion: #6229 (comment)

changelog: Upcoming Features, Identity Verification, Add personal key step screen

* Fix spec lingering reference to personal key confirm "Submit"
aduth and others added 25 commits May 6, 2022 11:59
Presumably we relied previously on PII being false in most cases. A handful of tests create a profile without a valid user attached to it, so now that we're assigning default PII for profiles, we should also only actually encrypt it if there's a valid user
In 259c213 we're now reliably setting default_url_options so that the URL will be generated correctly and we don't have to test path
too many tests assume it won't be there (probably a problem worth resolving)
     Selenium::WebDriver::Error::ElementNotInteractableError:
       element not interactable
     Capybara::NotSupportedByDriverError:
       Capybara::Driver::Base#response_headers

shouldn't redirect if invalid CSP target?
changelog: Upcoming Features, Identity Verification, Add personal key step screen
JS browser would not have visibility to content otherwise
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
When JS is enabled, previous step triggers spinner button, and there may be a brief delay before review step is shown. Avoid spec flakiness by allowing some wait for the review path to be shown.

precedent: https://github.com/18F/identity-idp/blob/e7501424b59f887aa12bd255f69de03502969fa0/spec/features/idv/proofing_components_spec.rb#L25
So that tests run against the in-production version, but we re-run personal key pages with both side of the toggle
Because it's a spinner button, we need to be able to wait for navigation to complete
@aduth aduth force-pushed the aduth-lg-6193-wire-it-up branch from 00ff8cc to 15cfc45 Compare May 6, 2022 16:00
@aduth aduth merged commit c05f26a into main May 6, 2022
@aduth aduth deleted the aduth-lg-6193-wire-it-up branch May 6, 2022 18:27
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