From b086bc5387c2ef2e5a614abc8b2e93f8e2498f45 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 2179a9f5978..621e26e9fbf 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.