From d48e967e89e7baa18c3cd0d025a08cb6e6070f41 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Tue, 30 Jan 2024 16:04:05 +0800 Subject: [PATCH] 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 --- lib/tests/behat/behat_accessibility.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tests/behat/behat_accessibility.php b/lib/tests/behat/behat_accessibility.php index ca2826a3fff..0a71bce615d 100644 --- a/lib/tests/behat/behat_accessibility.php +++ b/lib/tests/behat/behat_accessibility.php @@ -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',