From ecb8465ebe281bf8956a2e81629055856866975c Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Tue, 30 Jan 2024 15:59:59 +0800 Subject: [PATCH] MDL-79674 behat: Disable target-size rule Since axe-core has introduced WCAG 2.2 Level AA support, a `target-size` rule has been added which is a Level AA success criterion. Since we haven't started working on WCAG 2.2 Level AA compliance, let's disable this rule for now. See https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html --- lib/tests/behat/behat_accessibility.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/tests/behat/behat_accessibility.php b/lib/tests/behat/behat_accessibility.php index 7b88bd1191b..72495679c7a 100644 --- a/lib/tests/behat/behat_accessibility.php +++ b/lib/tests/behat/behat_accessibility.php @@ -218,6 +218,12 @@ EOF; 'type' > 'tag', 'values' => array_merge($standardtags, $extratags), ], + // TODO: MDL-80831 - Disable the target-size rule for now until we start working towards WCAG 2.2 Level AA compliance. + 'rules' => [ + 'target-size' => [ + 'enabled' => false, + ], + ], ]); } }