diff --git a/src/components/Task/Modal/Form/Complete/TaskModalCompleteForm.test.tsx b/src/components/Task/Modal/Form/Complete/TaskModalCompleteForm.test.tsx index 7a45a9caf..32b33f62d 100644 --- a/src/components/Task/Modal/Form/Complete/TaskModalCompleteForm.test.tsx +++ b/src/components/Task/Modal/Form/Complete/TaskModalCompleteForm.test.tsx @@ -20,6 +20,7 @@ import { dispatch } from 'src/lib/analytics'; import theme from 'src/theme'; import useTaskModal from '../../../../../hooks/useTaskModal'; import { TaskModalEnum } from '../../TaskModal'; +import { ContactStatusQuery } from '../Inputs/SuggestedContactStatus/SuggestedContactStatus.generated'; import { taskModalTests } from '../TaskModalTests'; import TaskModalCompleteForm from './TaskModalCompleteForm'; @@ -76,9 +77,15 @@ const Components = ({ mocks = {}, taskOverrides, props }: ComponentsProps) => ( mocks={{ LoadConstants: loadConstantsMockData, + ContactStatus: { + contact: { + status: null, + }, + }, ...mocks, }} onCall={mutationSpy} @@ -167,11 +174,9 @@ describe('TaskModalCompleteForm', () => { ); }); - expect( - await findByText('Initiate for Appointment', {}, { timeout: 3000 }), - ).toBeInTheDocument(); + expect(await findByText('Initiate for Appointment')).toBeInTheDocument(); expect(getByText("Change the contact's status to:")).toBeInTheDocument(); - }, 15000); + }); it('does not render suggested status when the Phase Constant does not provide a suggested status', async () => { const { getByRole, queryByText, findByRole } = render( @@ -396,9 +401,7 @@ describe('TaskModalCompleteForm', () => { userEvent.click(await findByRole('combobox', { name: 'Next Action' })); userEvent.click(await findByRole('option', { name: 'Thank You Note' })); - expect( - await findByText('Partner - Special', {}, { timeout: 3000 }), - ).toBeInTheDocument(); + expect(await findByText('Partner - Special')).toBeInTheDocument(); userEvent.click(getByText("Change the contact's status to:")); userEvent.click(getByText('Save'));