Skip to content

Commit

Permalink
update list stories
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Feb 22, 2024
1 parent cb25441 commit 48deb3c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions web/src/app/users/UserContactMethodListDest.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ export const SingleContactMethod: Story = {
const canvas = within(canvasElement)

// ensure correct info is displayed for single-field CM
await expect(
await canvas.findByText('Josiah (Single Field Destination Type)'),
).toBeVisible()
await expect(await canvas.findByText('Josiah (Single Field)')).toBeVisible()
await expect(await canvas.findByText('+1 555-555-5555')).toBeVisible()
// ensure CM is editable
await expect(
Expand Down Expand Up @@ -147,15 +145,11 @@ export const MultiContactMethods: Story = {

// ensure correct info is displayed for single field CM
await expect(
await canvas.findByText(
'single field CM (Single Field Destination Type)',
),
await canvas.findByText('single field CM (Single Field)'),
).toBeVisible()
// ensure correct info is displayed for triple-field CM
await expect(
await canvas.findByText(
'triple contact method (Multi Field Destination Type)',
),
await canvas.findByText('triple contact method (Multi Field)'),
).toBeVisible()
await expect(await canvas.findByText('+1 555-555-5556')).toBeVisible()
await expect(await canvas.findByText('test_user@target.com')).toBeVisible()
Expand Down

0 comments on commit 48deb3c

Please sign in to comment.