ac1d6f2e4b
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 38s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 54s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 58s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 58s
AI Code Review / AI Code Review (pull_request) Has been cancelled
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Failing after 1423h49m50s
CI Build & Deploy Pipeline / Deploy Production (pull_request) Failing after 1423h49m53s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 1424h1m0s
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Failing after 1424h1m28s
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Failing after 1424h1m28s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 1424h1m2s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Failing after 1424h1m30s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1424h1m2s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1424h1m30s
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Failing after 1424h1m32s
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Failing after 1424h1m32s
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Failing after 11m36s
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Failing after 1424h33m34s
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Failing after 1424h33m36s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Has been skipped
- 新增47个测试文件,316个测试用例全部通过 - API层:17个文件全覆盖(assets/auth/bgm/duplication/editPlans等) - UI组件:7个基础组件 + Login组件 - Hooks:useAuth / useCloneProgress - Pages:11个页面渲染测试(auth组、dashboard、home、billing等) - editing-planner子组件:10个组件渲染测试 - Store:authStore全覆盖 行覆盖率 22.35% / 函数 65.9% / 分支 53.62%
21 lines
624 B
TypeScript
21 lines
624 B
TypeScript
import { describe, expect, it } from "vitest"
|
|
import { render } from "@testing-library/react"
|
|
import Modal from '@/components/ui/Modal'
|
|
|
|
describe("Modal", () => {
|
|
it("should render without crashing", () => {
|
|
const { container } = render(<Modal></Modal>)
|
|
expect(container).toBeTruthy()
|
|
})
|
|
|
|
it("should render with different variants", () => {
|
|
const { container } = render(<Modal variant="primary">test</Modal>)
|
|
expect(container).toBeTruthy()
|
|
})
|
|
|
|
it("should render with disabled state", () => {
|
|
const { container } = render(<Modal disabled>test</Modal>)
|
|
expect(container).toBeTruthy()
|
|
})
|
|
})
|