Skip to content

The open alternative to Salesforce, designed for AI.

Stabilize navigation tooltip story (#27612)

Raphaël Bosi575999ee33b7
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/edit/components/__stories__/NavigationMenuItemEditable.stories.tsx b/packages/twenty-front/src/modules/navigation-menu-item/edit/components/__stories__/NavigationMenuItemEditable.stories.tsx
index b2804eed86d..f56a46c1e42 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/edit/components/__stories__/NavigationMenuItemEditable.stories.tsx
+++ b/packages/twenty-front/src/modules/navigation-menu-item/edit/components/__stories__/NavigationMenuItemEditable.stories.tsx
@@ -241,8 +241,10 @@ export const TooltipsStayOutOfActionMenus: Story = {
const status = await canvas.findByText('Status');
await user.hover(docs);
- await expect(await body.findByRole('tooltip')).toHaveTextContent('Link');
+ const docsTooltip = await body.findByRole('tooltip');
+ await expect(docsTooltip).toHaveTextContent('Link');
await user.hover(status);
+ await waitFor(() => expect(docsTooltip).not.toBeInTheDocument());
await expect(await body.findByRole('tooltip')).toHaveTextContent('Link');
await expect(body.getAllByRole('tooltip')).toHaveLength(1);