From 5742a54a93bea889a712e03459ff262720154e2d Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 20 Feb 2025 09:58:28 +0800 Subject: [PATCH] MDL-84590 tool_behat: Axe tests must use all wcag rules Rules are not additive. That is to say that the wcag22a tag does not include wcag21a or wcag2a. They all need to be specified. --- lib/tests/behat/behat_accessibility.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tests/behat/behat_accessibility.php b/lib/tests/behat/behat_accessibility.php index 1c313217266..508645225d4 100644 --- a/lib/tests/behat/behat_accessibility.php +++ b/lib/tests/behat/behat_accessibility.php @@ -191,9 +191,13 @@ EOF; if (empty($standardtags)) { $standardtags = [ // Meet WCAG 2.2 Level A success criteria. + 'wcag2a', + 'wcag21a', 'wcag22a', // Meet WCAG 2.2 Level AA success criteria. + 'wcag2aa', + 'wcag21aa', 'wcag22aa', // Meet Section 508 requirements.