-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(caregoal): add care goals to patient #2360
feat(caregoal): add care goals to patient #2360
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/hospitalrun/hospitalrun-frontend/pdo7y54br |
@@ -131,7 +131,7 @@ describe('ViewPatient', () => { | |||
const tabs = tabsHeader.find(Tab) | |||
expect(tabsHeader).toHaveLength(1) | |||
|
|||
expect(tabs).toHaveLength(9) | |||
expect(tabs).toHaveLength(10) |
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.
should also and a test to make sure it marks the tab as active when clicked
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.
Ok, tks
expect(descriptionInput.prop('feedback')).toEqual(expectedError.description) | ||
|
||
expect(prioritySelector.prop('isInvalid')).toBeTruthy() | ||
// expect(prioritySelector.prop('feedback')).toEqual(expectedError.priority) |
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 think this commented out code should be tested. We should un-comment it and make sure the tests pass.
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 think there is no feedback prop on SelectWithLabelFormGroup component. Also has a coment there: "todo: add feedback in next round"
|
||
wrapper.update() | ||
|
||
return { wrapper } |
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.
Change to return { wrapper: wrapper as ReactWrapper }
so we can get type support
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.
Ok
careGoal: Omit<CareGoal, 'id' | 'createdOn'> | ||
} | ||
|
||
async function addCareGoal(request: AddCareGoalRequest): Promise<CareGoal[]> { |
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.
there should be tests for this hook
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.
Yeah, I'd forgotten and then I did it on the lastest commit.
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.
typing in the note field does not seem to work
confirmed--doesn't work for me either |
Tks guys. I'll make those changes. |
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.
@jackcmeyer and @morrme are all comments addressed now?
Fixes #2080 .
Changes proposed in this pull request: