a11y-toolkit: Form error testing
a11y_formsSubmit forms with invalid data to check error identification and suggestions per WCAG 3.3.1 and 3.3.3. Analyzes post-submit DOM for aria-invalid, described-by, error summaries, and role=alert.
Instructions
Form error testing (3.3.1 Error Identification, 3.3.3 Error Suggestion) — the guided flow no competitor automates: fills every validatable field with INVALID data, really submits, and judges the post-submit DOM — are errors identified in text and associated with the field (aria-invalid + aria-describedby, error summary, role=alert), or does the form swallow them? Native browser validation counts as identification (unless the form has novalidate); forms that navigate on submit are honestly noted as not measurable in-page. Requires local Playwright.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Page URL with the form(s) to test | |
| lang | No | Output language (en default) | |
| timeout | No | Page load timeout seconds (45 default) | |
| auth_state | No | Path to a Playwright storage_state JSON to test forms behind login |