Skip to content

The open alternative to Salesforce, designed for AI.

Stabilize Dropdown trailing action story (#27641)

Raphaël Bosi034d5be08924
diff --git a/packages/twenty-ui/src/components/navigation/Dropdown/__stories__/Dropdown.picker.stories.tsx b/packages/twenty-ui/src/components/navigation/Dropdown/__stories__/Dropdown.picker.stories.tsx
index 289f15e117b..501c25fb6e6 100644
--- a/packages/twenty-ui/src/components/navigation/Dropdown/__stories__/Dropdown.picker.stories.tsx
+++ b/packages/twenty-ui/src/components/navigation/Dropdown/__stories__/Dropdown.picker.stories.tsx
@@ -729,6 +729,7 @@ export const CommandWithTrailingAction: Story = {
within(canvasElement).getByRole('button', { name: 'Views' }),
);
const item = await body.findByRole('button', { name: 'Open overview' });
+ await waitFor(() => expect(body.getByRole('dialog')).toBeVisible());
const action = body.getByRole('button', { name: 'Edit view' });