You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ARIA Snapshots are a great addition to Playwright, allowing to write assertions which include larger portions of the page, while also providing basic validation for the accessibility of features.
Forms and input fields are an important part of web applications and critical regarding accessibility. Being able to test them using ARIA snapshots including validation would enable testing forms with dependent form validations. In such scenarios, snapshotting the whole form would allow to reliably test dependent validations with a lower risk that later regressions affecting some form fields are missed.
The text was updated successfully, but these errors were encountered:
foxable
changed the title
[Feature]: Explose aria-invalid in ARIA Snapshots
[Feature]: Expose aria-invalid in ARIA Snapshots
Feb 18, 2025
🚀 Feature Request
In order to allow testing form validation with ARIA snapshots, snapshots of input fields should include the invalid state, namely
aria-invalid="true"
.Example
Example input field:
Potential ARIA snapshot:
Motivation
ARIA Snapshots are a great addition to Playwright, allowing to write assertions which include larger portions of the page, while also providing basic validation for the accessibility of features.
Forms and input fields are an important part of web applications and critical regarding accessibility. Being able to test them using ARIA snapshots including validation would enable testing forms with dependent form validations. In such scenarios, snapshotting the whole form would allow to reliably test dependent validations with a lower risk that later regressions affecting some form fields are missed.
The text was updated successfully, but these errors were encountered: