From aa68966b5558699aaf8aace94402498fa697d776 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Wed, 21 Jan 2026 16:46:42 +0800 Subject: [PATCH] test: fix test in #30849 (#31350) --- .../history-panel.spec.tsx | 10 +----- .../app/overview/customize/index.spec.tsx | 2 +- .../create/website/watercrawl/index.spec.tsx | 5 +++ .../plugins/plugin-page/index.spec.tsx | 1 + .../workflow-onboarding-modal/index.spec.tsx | 35 ------------------- 5 files changed, 8 insertions(+), 45 deletions(-) diff --git a/web/app/components/app/configuration/config-prompt/conversation-history/history-panel.spec.tsx b/web/app/components/app/configuration/config-prompt/conversation-history/history-panel.spec.tsx index 60627e12c2..827986f521 100644 --- a/web/app/components/app/configuration/config-prompt/conversation-history/history-panel.spec.tsx +++ b/web/app/components/app/configuration/config-prompt/conversation-history/history-panel.spec.tsx @@ -1,12 +1,6 @@ import { render, screen } from '@testing-library/react' -import * as React from 'react' import HistoryPanel from './history-panel' -const mockDocLink = vi.fn(() => 'doc-link') -vi.mock('@/context/i18n', () => ({ - useDocLink: () => mockDocLink, -})) - vi.mock('@/app/components/app/configuration/base/operation-btn', () => ({ default: ({ onClick }: { onClick: () => void }) => (