LG-7187: Send Customer Experience Follow-up Email for In-Person Proofing#7046
LG-7187: Send Customer Experience Follow-up Email for In-Person Proofing#7046
Conversation
… test URL for survey
…ley/lg-7187-follow-up-survey-email
…ience Follow-up Email
…ley/lg-7187-follow-up-survey-email
aduth
left a comment
There was a problem hiding this comment.
Couple minor comments, but overall LGTM! 👍
| # Wait for page to load before selecting location | ||
| expect(page).to have_css('.location-collection-item') |
There was a problem hiding this comment.
Will have_css actually wait without a wait: parameter given, or will it assert against the current page?
There was a problem hiding this comment.
According to the Capybara spec, has_css should wait for the content.
There was a problem hiding this comment.
According to the Capybara spec,
has_cssshould wait for the content.
Neat!
There was a problem hiding this comment.
The default_max_wait_time shown in the test is set to 0.5 for 18F/identity-idp on local stacks and 5 in Gitlab CI.
| [ | ||
| :oidc, | ||
| :saml, | ||
| ].each do |service_provider| |
There was a problem hiding this comment.
Do you think there's value in exercising this for both SP protocols, or could we just do one? Reason I ask is that these tests can be quite slow to run.
There was a problem hiding this comment.
I think it's valuable to have at least one IPP feature test covering both SP protocols, and to my knowledge this is the only one.
| end | ||
|
|
||
| def send_in_person_completion_survey | ||
| return unless sp_session_ial == 2 |
There was a problem hiding this comment.
what is the significance of 2 here?
There was a problem hiding this comment.
This requires that the user be sharing attributes verified via IAL2 with the partner in order to trigger the survey email (as opposed to IAL1 or IAL3). Note that this current usage excludes the IAL "strict" mode.
This value is passed as an attribute from the partner. The value then gets mapped to the IAL constants (in a session value) during authentication.
…ing (#7046) * LG-7187: Add follow-up survey field to in-person enrollments table * LG-7187: Start implementing email for follow-up survey * LG-7187: Style survey email and send on next partner sign-in * LG-7187: Send survey when user shares info with partner; add fallback test URL for survey * LG-7187: Test new survey DB query methods; format code * LG-7187: Expand tests; require IAL2 usage to send survey email * LG-7187: Add more tests relating to IPP survey email * LG-7187: Finish writing feature test for in-person proofing survey email * LG-7187: Fix unreliable tests and make IPP account creation reusable * changelog: Upcoming Features, In-person proofing, Send Customer Experience Follow-up Email * LG-7187: Add missing method to UserMailerPreview * LG-7187: Improve query tests; update English survey email translation * LG-7187: Combine paragraphs and use default margins/padding for survey email * LG-7187: Reference constant for IAL2 in IPP completion survey logic * LG-7187: Increase margin for paragraph above button
🎫 Ticket
🛠 Summary of changes
📜 Testing Plan
Provide a checklist of steps to confirm the changes.
👀 Screenshots
Emails as they appear in Mailcatcher:
English:
Spanish:
French: