HTML test cases

Git repository

Page contents


Basic form control and label tests - Added 01/03/2021

Tests to determine how form controls and their associated labels/legends are announced. In some cases, the form element does not require or should not have a label.

Inputs

Other elements


Help text and error messages associated with form control tests - Added 01/03/2021

Tests to determine how help text and error messages can be associated with form controls.

Help text

Error messages


Nested fieldset tests - Added 01/03/2021

Tests to determine how nested fieldsets are announced.


Required field tests - Added 03/03/2021

Tests to determine how "required", "aria-required" and other related options are announced.


Accessible name tests - Added 03/03/2021

The purpose these tests is to show the cascade order of how accessible names are applied in the accessibility tree for buttons and inputs. These examples should not be considered proper practice.

Button

Link

Input


Aria-invalid tests - Added 06/03/2021

Tests to determine how the "aria-invalid" attribute is announced.


Form-based attribute tests - Added 08/03/2021

Tests to determine how "max", "aria-valuemax", "min", "aria-valuemin", "maxlength", "minlength", "multiple" and "pattern" attributes are announced.


Disabled field tests - Added 20/03/2021

Tests to determine how the boolean "disabled" attribute is announced. Disabled attributes cannot receive focus, so the only way to test how these attributes are announced is via:


Technology details

OSX Catalina - 10.15.7

Windows 10 Enterprise:

Assistive Technologies