mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-71724 lib: Set Moodle files after axe upgrade
This commit is contained in:
parent
e35a803476
commit
bc77f8d9ea
15
lib/behat/axe/readme_moodle.txt
Normal file
15
lib/behat/axe/readme_moodle.txt
Normal file
@ -0,0 +1,15 @@
|
||||
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
|
@ -11,7 +11,7 @@
|
||||
<location>behat/axe</location>
|
||||
<name>axe-core</name>
|
||||
<license>MPL</license>
|
||||
<version>3.5.5</version>
|
||||
<version>4.3.5</version>
|
||||
<licenseversion>2.0</licenseversion>
|
||||
</library>
|
||||
<library>
|
||||
|
Loading…
x
Reference in New Issue
Block a user