diff --git a/apps/desktop/stories/composer-slash-menu.stories.tsx b/apps/desktop/stories/composer-slash-menu.stories.tsx index 3caf7e535b..07d6d1dd7d 100644 --- a/apps/desktop/stories/composer-slash-menu.stories.tsx +++ b/apps/desktop/stories/composer-slash-menu.stories.tsx @@ -435,7 +435,7 @@ export const ContextSwitchStartsWithALoadingCatalog: Story = { await waitFor(() => expect(skillsRow).toHaveAttribute('aria-busy', 'true')); await expect(skillsRow).not.toHaveAttribute('aria-disabled', 'true'); await userEvent.click(skillsRow); - await expect(menu).toBeVisible(); + await waitFor(() => expect(menu).toBeVisible(), { timeout: 5_000 }); await expect(editor(canvasElement)).toHaveTextContent(''); await expect(page.queryByRole('listbox', { name: /技能/ })).not.toBeInTheDocument();