From 62fdb7ffa4af5e9654255ad12875d14d020fb557 Mon Sep 17 00:00:00 2001 From: wjames111 Date: Mon, 5 Aug 2024 14:15:48 -0400 Subject: [PATCH] Update FixPhoneNumbers/Contact.test.tsx test to include confirm button click and updatePhoneNumber call. --- src/components/Tool/FixPhoneNumbers/Contact.test.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Tool/FixPhoneNumbers/Contact.test.tsx b/src/components/Tool/FixPhoneNumbers/Contact.test.tsx index b38af145b..a5e1c2896 100644 --- a/src/components/Tool/FixPhoneNumbers/Contact.test.tsx +++ b/src/components/Tool/FixPhoneNumbers/Contact.test.tsx @@ -137,5 +137,7 @@ describe('FixPhoneNumbers-Contact', () => { expect(handleChangePrimaryMock).toHaveBeenCalled(); userEvent.click(getByTestId('delete-testid-1')); expect(handleDeleteModalOpenMock).toHaveBeenCalled(); + userEvent.click(getByTestId(`confirmButton-${testData.id}`)); + expect(updatePhoneNumber).toHaveBeenCalled(); }); });