LG-8274: In-Person Proofing CTA A/B Testing#7669
Conversation
…e the variant B Try in person button to the IPP location page. Remove unnecessary comments for IPP variant testing. Log an event when each variant is shown.
…a.prompt_detail_b
… french and spanish. Fix linting issues.
…arch About text to reflect additional POs coming available soon and CTA Prompt Detail to include comma before D.C. (all languages)
…ttps://github.com/18F/identity-idp into jess/LG-8274-IPP-CTA-AB-test-higher-level-switching
…AB-test-higher-level-switching
…s for improved in-person proofing calls to action
app/javascript/packages/document-capture/components/review-issues-step.tsx
Show resolved
Hide resolved
…ttps://github.com/18F/identity-idp into jess/LG-8274-IPP-CTA-AB-test-higher-level-switching
…e old IPP CTA is never shown; adjust logging logic accordingly
...javascript/packages/document-capture/components/document-capture-troubleshooting-options.tsx
Show resolved
Hide resolved
app/javascript/packages/document-capture/components/in-person-call-to-action.spec.tsx
Show resolved
Hide resolved
app/javascript/packages/document-capture/components/review-issues-step.tsx
Show resolved
Hide resolved
app/javascript/packages/document-capture/components/review-issues-step.tsx
Show resolved
Hide resolved
| heading, | ||
| actionText, | ||
| actionOnClick, | ||
| altActionText, |
There was a problem hiding this comment.
just want to make sure i understand - altAction is variant-b's cta?
There was a problem hiding this comment.
Speaking first generally, we augmented this component to allow for two actions in the same paradigm as you might see an "OK" and a "Cancel". The primary user action is as before: Blue button, white text. We've added an alternative user action option that is presented as a white button with blue outline.
You are correct about the way this is used in the variant B Warning component.
There was a problem hiding this comment.
ahh ok so then i should think of this as a [stylistic] secondary version of the button.
There was a problem hiding this comment.
Hm I might be misunderstanding you here - "a [stylistic] secondary version of the button" makes it sound like a different (stylistic) way to present a sole intended user option, like you would be using the white-with-blue-outline style instead of the blue. While the implementation would technically allow for that (I think...), that isn't the intended use. Rather than a different way to display the same button, we wanted the Warning to display two different buttons.
| /** | ||
| * The specific A/B testing variant that was activated for the current user session. | ||
| */ | ||
| inPersonCtaVariantActive?: string; |
There was a problem hiding this comment.
what's the difference btwn enabled and active? Is enabled saying "a/b testing happened" and active is saying "this user saw variant x"? If so can we change the naming to something like inPersonCtaVariantVersion? active makes me think it would be a boolean value.
There was a problem hiding this comment.
oh, or just inPersonCtaVariant?
There was a problem hiding this comment.
Valid question - I went back and forth on the naming of these for a long time. Let me know if you have a suggestion for how to better capture what's happening here:
inPersonCtaVariantTestingEnabled - Is AB testing turned on in the application config?
inPersonCtaVariantActive - Which variant has been activated for the current user session?
There was a problem hiding this comment.
i think the enabled one is clear. The active one i would change to something like inPersonCtaVariant or even just switch around variant and active to inPersonCtaActiveVariant. I know when i see an action word at the end of a variable name it suggests a boolean to me.
…CTA test to in_person_variant_a
…ttps://github.com/18F/identity-idp into jess/LG-8274-IPP-CTA-AB-test-higher-level-switching
🎫 Ticket
LG-8274: Try in Person IPP CTA A/B Testing
🛠 Summary of changes
📜 Testing Plan
in_person_proofing_enabledtrue / falsein_person_cta_variant_testing_enabledtrue / falsein_person_cta_variant_testing_percentsvalues:--
{}--
{"A":100, "B":0}--
{"A":0,"B":100}--
{"A":0,"B":0,"C":100}-- Document authentication error type (hard fail, or attention)
-- Language
With IPP and variant testing enabled and testing percents as
{"A":45,"B":45,"C":10}, step through the doc auth attention error flow with multiple user sessions and confirm that variant will change.Ensure existing automated test suite passes
👀 Screenshots
Seen for all test scenarios in google drive here: https://docs.google.com/document/d/1WxmfnSmoaKVblFd2eio9OA71ONaIRJITdw1dn6jxwEg/edit?usp=sharing