From bcead7cd6d751212e9d4dfd102ca3258a0da71a2 Mon Sep 17 00:00:00 2001 From: Nathaniel Caza Date: Wed, 17 Jan 2024 11:23:12 -0600 Subject: [PATCH] update test --- web/src/app/selection/DestinationField.stories.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/web/src/app/selection/DestinationField.stories.tsx b/web/src/app/selection/DestinationField.stories.tsx index 3c04f392e0..6bfad42b17 100644 --- a/web/src/app/selection/DestinationField.stories.tsx +++ b/web/src/app/selection/DestinationField.stories.tsx @@ -84,12 +84,8 @@ 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() @@ -97,11 +93,11 @@ export const MultiField: Story = { 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() }, }