-
Notifications
You must be signed in to change notification settings - Fork 1
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
MPDX-8384- Tasks modal - task type reset #1152
Conversation
Preview branch generated at https://MPDX-8384-task-type-reset.d3dytjb8adxkk5.amplifyapp.com |
Bundle sizes [mpdx-react]Compared against fb060bb No significant changes found |
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 is close! Changing the phase doesn't update the Task Name field though. We might need to trigger the handleTaskActionChange
logic inside of handleTaskPhaseChange
.
handleTaskPhaseChange({ | ||
phase, | ||
setFieldValue, | ||
setResultSelected, | ||
setActionSelected, | ||
setPhaseId, | ||
setSelectedSuggestedTags, | ||
activities, | ||
activityRef, |
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.
Instead of passing in a ref, let's pass in a focusActivity
function.
f12b8d6
to
2cbcbc9
Compare
2cbcbc9
to
e9e667a
Compare
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 looks like it works!
'Phone Call', | ||
); | ||
await waitFor(() => { | ||
expect(getByLabelText(/Task Name/i)).toHaveValue('Phone Appointment'); |
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.
Does getByRole('textbox', { name: 'Subject' })
not work here and following?
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.
Not sure why I did it that way originally, I updated them to getByRole('textbox', { name: 'Subject' })
.
Description
Checklist: