Conversation
app/javascript/packages/verify-flow/steps/personal-key/download-button.tsx
Outdated
Show resolved
Hide resolved
app/javascript/packages/verify-flow/steps/personal-key/personal-key-step.tsx
Outdated
Show resolved
Hide resolved
app/javascript/packages/verify-flow/steps/personal-key/download-button.tsx
Outdated
Show resolved
Hide resolved
|
This reminds me that we had actually implemented a React-based analytics context for document capture, which could be another solution for stubbing That being said, if this way of spying on import * as analytics from '@18f/identity-analytics';
sandbox.spy(analytics, 'trackEvent'); |
Now the error isn't showing up anymore 😅 I guess it automagically fixed itself? |
app/javascript/packages/verify-flow/steps/personal-key/download-button.tsx
Outdated
Show resolved
Hide resolved
app/javascript/packages/verify-flow/steps/personal-key/personal-key-step.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
For some reason removing the basePath was the only thing I could figure out to do to finally get this test to pass (it would get stuck on the personal_key step and fail to get the continue button element, so it was unable proceed to the next step) . Of course once I removed basePath I got a typecheck error so I had to update the type definition as well.
.gitlab-ci-deploy.yml
Outdated
There was a problem hiding this comment.
Looks like some unrelated commits got into the branch. Could you remove those? (e.g. rebase)
There was a problem hiding this comment.
We could do it here or in a separate pull request, but I think for LG-6201 to be complete, we need to figure out how to avoid prefixing for these events, since otherwise we don't have strict parity with how it was working previously.
There was a problem hiding this comment.
Lets do it in another pull request
changelog: Upcoming Features, Identity Verification, add logging
3a2a32c to
5b3e855
Compare
Co-Authored-By: Nadya Primak <nprimak@pluribusdigital.com>
Co-Authored-By: Nadya Primak <nprimak@pluribusdigital.com>
* LG-6201: Audit and implement missing event logs changelog: Upcoming Features, Identity Verification, add logging * Use getByText to get Continue button Co-Authored-By: Nadya Primak <nprimak@pluribusdigital.com> * Remove extra space Co-Authored-By: Nadya Primak <nprimak@pluribusdigital.com> Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
* LG-6201: Audit and implement missing event logs changelog: Upcoming Features, Identity Verification, add logging * Use getByText to get Continue button Co-Authored-By: Nadya Primak <nprimak@pluribusdigital.com> * Remove extra space Co-Authored-By: Nadya Primak <nprimak@pluribusdigital.com> Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
LG-6201
What
Adding logs for personal_key step based on event log documentation in Figma
Also adding test coverage for all logging events.
Why
We need to add logging to the personal key step to match the existing logging in production.
Testing Instructions
application.yml.default, setidv_api_enabledtotrue