5610ef9f1a
CI/CD Pipeline / Check if frontend-only change (push) Has been skipped
CI Build & Deploy Pipeline / Build Production API Image (push) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (push) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (push) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (push) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 1m8s
CI Build & Deploy Pipeline / Build Staging Web Image (push) Successful in 1m31s
CI/CD Pipeline / Frontend Lint (push) Successful in 2m26s
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 3m46s
CI/CD Pipeline / Unit Tests (push) Successful in 3m49s
CI/CD Pipeline / Integration Tests (push) Successful in 1m52s
CI Build & Deploy Pipeline / Build Staging API Image (push) Successful in 6m29s
CI Build & Deploy Pipeline / Build Staging Worker Image (push) Successful in 8m32s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 50s
CI Build & Deploy Pipeline / Staging E2E Tests (push) Failing after 1m21s
CI Build & Deploy Pipeline / Staging API Integration Tests (push) Successful in 3m11s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
21 lines
633 B
TypeScript
21 lines
633 B
TypeScript
import { describe, expect, it } from "vitest"
|
|
import { render } from "@testing-library/react"
|
|
import Select from "@/components/ui/Select"
|
|
|
|
describe("Select", () => {
|
|
it("should render without crashing", () => {
|
|
const { container } = render(<Select></Select>)
|
|
expect(container).toBeTruthy()
|
|
})
|
|
|
|
it("should render with different variants", () => {
|
|
const { container } = render(<Select variant="primary">test</Select>)
|
|
expect(container).toBeTruthy()
|
|
})
|
|
|
|
it("should render with disabled state", () => {
|
|
const { container } = render(<Select disabled>test</Select>)
|
|
expect(container).toBeTruthy()
|
|
})
|
|
})
|