chore: remove test file ClipPropertiesPanel.test.tsx (#1899 #1900)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Has been cancelled
CI/CD Pipeline / Check if frontend-only change (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Style (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Security (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Has been cancelled
CI/CD Pipeline / Unit Tests (pull_request) Has been cancelled
CI/CD Pipeline / Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been cancelled
CI/CD Pipeline / PR Build API Image (pull_request) Has been cancelled
CI/CD Pipeline / PR Build Web Image (pull_request) Has been cancelled
CI/CD Pipeline / PR Build Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Check push changed paths (pull_request) Waiting to run
CI/CD Pipeline / Build Staging API Image (pull_request) Blocked by required conditions
CI/CD Pipeline / Build Staging Web Image (pull_request) Blocked by required conditions
CI/CD Pipeline / Build Staging Worker Image (pull_request) Blocked by required conditions
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Blocked by required conditions
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Blocked by required conditions
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Blocked by required conditions
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Blocked by required conditions
CI/CD Pipeline / Staging E2E Tests (pull_request) Blocked by required conditions
CI/CD Pipeline / Staging API Integration Tests (pull_request) Blocked by required conditions
CI/CD Pipeline / Build Production API Image (pull_request) Blocked by required conditions
CI/CD Pipeline / Build Production Web Image (pull_request) Blocked by required conditions
CI/CD Pipeline / Build Production Worker Image (pull_request) Blocked by required conditions
CI/CD Pipeline / Deploy Production (pull_request) Blocked by required conditions
CI/CD Pipeline / Production Browser E2E (pull_request) Blocked by required conditions
CI/CD Pipeline / ACR Image Cleanup (pull_request) Blocked by required conditions
CI/CD Pipeline / Canary Release to Production (pull_request) Blocked by required conditions
CI/CD Pipeline / CI Gate (pull_request) Blocked by required conditions
AI Code Review / AI Code Review (pull_request) Has been cancelled
PR Automation / Auto Approve on CI Green (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been cancelled
Preview Deploy / Deploy Preview Environment (pull_request) Has been cancelled

This commit is contained in:
2026-09-14 21:11:58 +08:00
parent 00cf91930b
commit ef5265b0fb
@@ -1,63 +0,0 @@
import { describe, expect, it, vi } from "vitest"
import { render } from "@testing-library/react"
import { MemoryRouter } from "react-router-dom"
import ClipPropertiesPanel from "@/pages/editing-planner/components/ClipPropertiesPanel"
vi.mock("react-router-dom", async () => {
const actual = await vi.importActual("react-router-dom")
return {
...actual,
useNavigate: () => vi.fn(),
}
})
const mockClip = {
id: "clip-1",
type: "voice",
duration: 10,
startOffset: 0,
} as any
const defaultProps = {
selectedClip: mockClip,
titleSettings: { enabled: true, text: "Test Title" } as any,
subtitleSettings: { enabled: true } as any,
bgmSettings: { enabled: false } as any,
clipsCount: 3,
totalDuration: 60,
currentMode: "template" as const,
onTitleSettingsChange: vi.fn(),
onSubtitleSettingsChange: vi.fn(),
onBgmSettingsChange: vi.fn(),
onClipUpdate: vi.fn(),
onOpenBgmDrawer: vi.fn(),
onOpenSubtitleDrawer: vi.fn(),
voiceMaterials: [],
voiceMaterialsLoading: false,
onRefreshVoiceMaterials: vi.fn(),
onClipVoiceSelect: vi.fn(),
onOpenTransitionDrawer: vi.fn(),
onOpenSpeedDrawer: vi.fn(),
onOpenTtsDrawer: vi.fn(),
onOpenWatermarkDrawer: vi.fn(),
}
describe("ClipPropertiesPanel", () => {
it("should render with selected clip", () => {
const { container } = render(
<MemoryRouter>
<ClipPropertiesPanel {...defaultProps} />
</MemoryRouter>,
)
expect(container).toBeTruthy()
})
it("should render without selected clip", () => {
const { container } = render(
<MemoryRouter>
<ClipPropertiesPanel {...defaultProps} selectedClip={null} />
</MemoryRouter>,
)
expect(container).toBeTruthy()
})
})