Skip to content

Commit

Permalink
- test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Herrera committed Dec 18, 2024
1 parent d13d7c2 commit a4dde55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ describe('UpdateAcquisitionForm component', () => {
utils.container.querySelector(`select[name="fileStatusTypeCode"]`) as HTMLSelectElement,
getEstimatedCompletionDatePicker: () =>
utils.container.querySelector(`input[name="estimatedCompletionDate"]`) as HTMLInputElement,
getAssignedDatePicker: () =>
utils.container.querySelector(`input[name="assignedDate"]`) as HTMLInputElement,
getPossessionDatePicker: () =>
utils.container.querySelector(`input[name="possessionDate"]`) as HTMLInputElement,
getTeamMemberProfileDropDownList: (index = 0) =>
Expand Down Expand Up @@ -164,11 +166,12 @@ describe('UpdateAcquisitionForm component', () => {
expect(getByText('test representative comment')).toBeVisible();
});

it('displays estimated completion and possession dates', async () => {
const { getEstimatedCompletionDatePicker, getPossessionDatePicker } = setup({ initialValues });
it('displays estimated completion, assigned and possession dates', async () => {
const { getEstimatedCompletionDatePicker, getPossessionDatePicker, getAssignedDatePicker } = setup({ initialValues });
await act(async () => {});
expect(getEstimatedCompletionDatePicker()).toHaveValue('Jul 10, 2024');
expect(getPossessionDatePicker()).toHaveValue('Jul 10, 2025');
expect(getAssignedDatePicker()).toHaveValue('Dec 17, 2024');
});

it('displays Individual type Owner with data', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ exports[`UpdateAcquisitionForm component > Sub-interest files > renders as expec
name="assignedDate"
placeholder="MMM DD, YYYY"
type="text"
value="Jun 27, 2022"
value="Dec 17, 2024"
/>
</div>
</div>
Expand Down Expand Up @@ -4554,7 +4554,7 @@ exports[`UpdateAcquisitionForm component > renders as expected 1`] = `
name="assignedDate"
placeholder="MMM DD, YYYY"
type="text"
value="Jun 27, 2022"
value="Dec 17, 2024"
/>
</div>
</div>
Expand Down

0 comments on commit a4dde55

Please sign in to comment.