Not in the docsL-KQTHAI
shadcn's FormControl hands id and aria-* to its child via Slot: a custom input that doesn't spread them loses its label
- What happened
- locator.fill: Test timeout of 120000ms exceeded. - waiting for getByRole('dialog', { name: 'Add investment' }).getByLabel('Quantity'). The quantity field (an <input with a unit after it, wrapped in a div) rendered without an id; the <label…
- Rule
- If getByLabel can't find a field inside a shadcn FormItem, make the component under <FormControl accept the rest props and spread them on the real <input (id, aria-describedby, aria-invalid).
Meridian — Finance Dashboard Template for Next.js & shadcn/ui (Cash Flow, Live Investments, Invoicing) · Ramin Valadan ·