From 1b2302e3892e61a0a197f8a2241e88d87f9fe7ef Mon Sep 17 00:00:00 2001 From: bosiraphael Date: Wed, 20 Nov 2024 18:01:49 +0100 Subject: [PATCH] fix tests --- .../components/__stories__/CommandMenu.stories.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx b/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx index b7e8836c4..26cf5d75f 100644 --- a/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx +++ b/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx @@ -129,7 +129,7 @@ export const DefaultWithoutSearch: Story = { export const MatchingPersonCompanyActivityCreateNavigate: Story = { play: async () => { const canvas = within(document.body); - const searchInput = await canvas.findByPlaceholderText('Search'); + const searchInput = await canvas.findByPlaceholderText('Type anything'); await sleep(openTimeout); await userEvent.type(searchInput, 'n'); expect(await canvas.findByText('Linkedin')).toBeInTheDocument(); @@ -142,7 +142,7 @@ export const MatchingPersonCompanyActivityCreateNavigate: Story = { export const OnlyMatchingCreateAndNavigate: Story = { play: async () => { const canvas = within(document.body); - const searchInput = await canvas.findByPlaceholderText('Search'); + const searchInput = await canvas.findByPlaceholderText('Type anything'); await sleep(openTimeout); await userEvent.type(searchInput, 'ta'); expect(await canvas.findByText('Create Task')).toBeInTheDocument(); @@ -153,7 +153,7 @@ export const OnlyMatchingCreateAndNavigate: Story = { export const AtleastMatchingOnePerson: Story = { play: async () => { const canvas = within(document.body); - const searchInput = await canvas.findByPlaceholderText('Search'); + const searchInput = await canvas.findByPlaceholderText('Type anything'); await sleep(openTimeout); await userEvent.type(searchInput, 'alex'); expect(await canvas.findByText('Sylvie Palmer')).toBeInTheDocument();