fix tests

This commit is contained in:
bosiraphael
2024-11-20 18:01:49 +01:00
parent b73c806974
commit 1b2302e389

View File

@@ -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();