Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Jan 17, 2024
1 parent 09ca665 commit bcead7c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions web/src/app/selection/DestinationField.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,20 @@ export const MultiField: Story = {
const canvas = within(canvasElement)

// ensure information for phone number renders correctly
await expect(canvas.getByLabelText('Phone Number')).toBeVisible()
await expect(
canvas.getByText(
'Include country code e.g. +1 (USA), +91 (India), +44 (UK)',
),
).toBeVisible()
await expect(canvas.getByLabelText('First Item')).toBeVisible()
await expect(canvas.getByText('Some hint text')).toBeVisible()
await expect(canvas.getByText('+')).toBeVisible()
await expect(canvas.getByPlaceholderText('11235550123')).toBeVisible()

// ensure information for email renders correctly
await expect(
canvas.getByPlaceholderText('foobar@example.com'),
).toBeVisible()
await expect(canvas.getByLabelText('Email Address')).toBeVisible()
await expect(canvas.getByLabelText('Second Item')).toBeVisible()

// ensure information for slack renders correctly
await expect(canvas.getByPlaceholderText('slack user ID')).toBeVisible()
await expect(canvas.getByLabelText('Slack User')).toBeVisible()
await expect(canvas.getByLabelText('Third Item')).toBeVisible()
},
}

Expand Down

0 comments on commit bcead7c

Please sign in to comment.