import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Checkbox } from "@/components/ui/checkbox"; import { FlaskConical, Plus } from "lucide-react"; interface TestingTabContentProps { skipTests: boolean; onSkipTestsChange: (skipTests: boolean) => void; steps: string[]; onStepsChange: (steps: string[]) => void; testIdPrefix?: string; } export function TestingTabContent({ skipTests, onSkipTestsChange, steps, onStepsChange, testIdPrefix = "", }: TestingTabContentProps) { const checkboxId = testIdPrefix ? `${testIdPrefix}-skip-tests` : "skip-tests"; const handleStepChange = (index: number, value: string) => { const newSteps = [...steps]; newSteps[index] = value; onStepsChange(newSteps); }; const handleAddStep = () => { onStepsChange([...steps, ""]); }; return (
onSkipTestsChange(checked !== true)} data-testid={`${testIdPrefix ? testIdPrefix + "-" : ""}skip-tests-checkbox`} />

When enabled, this feature will use automated TDD. When disabled, it will require manual verification.

{/* Verification Steps - Only shown when skipTests is enabled */} {skipTests && (

Add manual steps to verify this feature works correctly.

{steps.map((step, index) => ( handleStepChange(index, e.target.value)} data-testid={`${testIdPrefix ? testIdPrefix + "-" : ""}feature-step-${index}${testIdPrefix ? "" : "-input"}`} /> ))}
)}
); }