diff --git a/src/components/Task/Modal/Form/TaskModalForm.test.tsx b/src/components/Task/Modal/Form/TaskModalForm.test.tsx
index f4a67f47d..a3fb3529f 100644
--- a/src/components/Task/Modal/Form/TaskModalForm.test.tsx
+++ b/src/components/Task/Modal/Form/TaskModalForm.test.tsx
@@ -365,6 +365,55 @@ describe('TaskModalForm', () => {
);
});
+ it('defaults the subject to the defaultValues subject', () => {
+ const { getByRole } = render(
+
+
+
+
+
+
+ ,
+ );
+
+ expect(getByRole('textbox', { name: 'Subject' })).toHaveValue(
+ 'Do something',
+ );
+ });
+
+ it('defaults the subject to the name based on phase and action', () => {
+ const { getByRole } = render(
+
+
+
+
+
+
+ ,
+ );
+
+ expect(getByRole('textbox', { name: 'Subject' })).toHaveValue(
+ 'Text Message Partner For Cultivation',
+ );
+ });
+
it('renders fields for completed task', async () => {
const { getByRole, findByRole, queryByText } = render(