fix: add data-testid to TextInput mock in EPG test

This commit is contained in:
Shokkstokk 2026-06-05 01:26:51 +00:00
parent c0b7cc5fe8
commit e731527104

View file

@ -245,7 +245,14 @@ vi.mock('@mantine/core', async () => ({
Stack: ({ children, gap }) => <div data-testid="stack">{children}</div>,
Text: ({ children, ...props }) => <span>{children}</span>,
TextInput: ({ label, value, onChange, placeholder, ...props }) => (
<label>{label}<input type="text" value={value || ""} onChange={onChange} placeholder={placeholder} /></label>
<input
type="text"
aria-label={label}
data-testid={`input-${label?.toString().toLowerCase().replace(/\s+/g, '-')}`}
value={value || ''}
onChange={onChange}
placeholder={placeholder}
/>
),
}));