HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.0.30
System: Linux multiplicar 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64
User: root (0)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /var/www/html/dda.sumar.com.py/lib/behat/axe/readme_moodle.txt
Description of axe import into Moodle

1/ Download the latest axe code somewhere (example /tmp/axe) using:
npm install axe-core --save-dev
Note down the version number displayed by the command, to update lib/thirdpartylibs.xml accordingly.


2/ Copy the following file to your local Moodle directory, to replace the old one:
cp node_modules/axe-core/axe.min.js [PATH TO YOUR MOODLE]/lib/behat/axe/


3/ Run behat tests labelled with @accessibility and confirm they are passing with the new library version, or fix the failures
because the new version might raise issues that weren't detected previously:
php admin/tool/behat/cli/init.php --axe
php admin/tool/behat/cli/run.php --tags=@accessibility