-
Notifications
You must be signed in to change notification settings - Fork 128
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
[96836] Appoint a Rep prefill #33667
Conversation
573bcdb
to
ff86c22
Compare
!!mockData && environment.isLocalhost() && !window.Cypress | ||
? mockData | ||
: undefined, | ||
// initialData: |
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.
This only impacts local development and can easily be uncommented to enable data seeding. It interfered with prefill.
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.
LGTM
import { expect } from 'chai'; | ||
import sinon from 'sinon'; | ||
import ClaimantType from '../../../components/ClaimantType'; | ||
import initialFormData from '../../fixtures/data/initial-form-data.json'; | ||
import prefill from '../../fixtures/data/prefill.json'; | ||
import formConfig from '../../../config/form.js'; |
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.
Can omit the .js extension here to satisfy the linter
|
||
const ClaimantType = props => { | ||
const { router, setFormData } = props; | ||
const { router, setFormData, loggedIn } = props; | ||
|
||
const { data: formData } = useSelector(state => state.form); |
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.
This isn't one of your changes, but I think formData
should also be retrievable from props and useSelector
shouldnt be necessary? If it's an easy update then we may as well make it now, otherwise I can approve.
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 switched to getting the form data from state like our other components
2d41210
to
28edccf
Compare
Are you removing, renaming or moving a folder in this PR?
Did you change site-wide styles, platform utilities or other infrastructure?
Summary
Related issue(s)
Testing done
Before
Screen.Recording.2024-12-20.at.10.34.59.AM.mov
After
Screen.Recording.2024-12-20.at.10.29.18.AM.mov
What areas of the site does it impact?
Appoint a Rep Form 21-22 and 21-22a
Acceptance criteria
Quality Assurance & Testing
Error Handling
Authentication