Skip to content

Commit

Permalink
Adding test to ensure sources are showing.
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Dec 10, 2024
1 parent 7976977 commit c2753c1
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,28 @@ describe('DeleteContactModal', () => {
getByRole('button', { name: 'delete contact' }),
).toBeInTheDocument();
});

it('should show third party source for contact', async () => {
const { findByText } = render(
<TestComponent
contactSource={ContactSourceEnum.GiveSite}
addressSources={['Siebel', 'MPDX']}
emailSources={['Siebel', 'MPDX']}
phoneSources={['Siebel', 'MPDX']}
/>,
);

expect(await findByText('Contact: GIVE_SITE')).toBeInTheDocument();
expect(
await findByText('Address: US Donation Services'),
).toBeInTheDocument();
expect(
await findByText('Email: US Donation Services'),
).toBeInTheDocument();
expect(
await findByText('Phone: US Donation Services'),
).toBeInTheDocument();
});
});

describe('Show normal delete message', () => {
Expand Down

0 comments on commit c2753c1

Please sign in to comment.