From 8ca7f282bcf2e2677e807fdd7de8de0aad05340b 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 0574e4667ea..5f441ea87c4 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.