diff --git a/src/components/ui/toast.tsx b/src/components/ui/toast.tsx index 9e76566..88fa7dc 100644 --- a/src/components/ui/toast.tsx +++ b/src/components/ui/toast.tsx @@ -8,13 +8,15 @@ interface ToastProps { type?: 'success' | 'error' | 'info'; duration?: number; onClose: () => void; + 'data-testid'?: string; } export function Toast({ message, type = 'success', duration = 3000, - onClose + onClose, + 'data-testid': dataTestId }: ToastProps) { const [isVisible, setIsVisible] = useState(true); @@ -41,6 +43,8 @@ export function Toast({ return (