diff --git a/web/app/components/snippets/__tests__/index.spec.tsx b/web/app/components/snippets/__tests__/index.spec.tsx index 65f2c8971c..e0a2777f2a 100644 --- a/web/app/components/snippets/__tests__/index.spec.tsx +++ b/web/app/components/snippets/__tests__/index.spec.tsx @@ -1,3 +1,4 @@ +import type { HeaderProps } from '@/app/components/workflow/header' import type { SnippetDetailPayload } from '@/models/snippet' import { fireEvent, render, screen } from '@testing-library/react' import { PipelineInputVarType } from '@/models/pipeline' @@ -81,6 +82,20 @@ vi.mock('@/app/components/workflow', () => ({ ), })) +vi.mock('@/app/components/workflow/header', () => ({ + default: (props: HeaderProps) => { + const CustomRunMode = props.normal?.runAndHistoryProps?.components?.RunMode + + return ( +