MDL-79674 behat: Use proper tags for testing WCAG 2.1 criteria

`wcag2a` and `wcag2aa` refer to WCAG 2.0 standards. We should be using
`wcag21a` and `wcag21aa` to test against WCAG 2.1 standards.

See:
https://github.com/dequelabs/axe-core/blob/develop/doc/API.md#axe-core-tags
This commit is contained in:
Jun Pataleta 2024-01-30 16:04:05 +08:00
parent ecb8465ebe
commit 32ae09a672
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7

View File

@ -191,10 +191,10 @@ EOF;
if (empty($standardtags)) {
$standardtags = [
// Meet WCAG 2.1 A requirements.
'wcag2a',
'wcag21a',
// Meet WCAG 2.1 AA requirements.
'wcag2aa',
'wcag21aa',
// Meet Section 508 requirements.
// See https://www.epa.gov/accessibility/what-section-508 for detail.
@ -203,7 +203,7 @@ EOF;
// Ensure that ARIA attributes are correctly defined.
'cat.aria',
// Requiremetns for sensory and visual cues.
// Requirements for sensory and visual cues.
// These largely related to viewport scale and zoom functionality.
'cat.sensory-and-visual-cues',