mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
Merge branch 'MDL-78257' of https://github.com/paulholden/moodle
This commit is contained in:
commit
bd22b04d30
4
lib/behat/axe/axe.min.js
vendored
4
lib/behat/axe/axe.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,15 +1,18 @@
|
||||
Description of axe import into Moodle
|
||||
|
||||
1/ Download the latest axe code somewhere (example /tmp/axe) using:
|
||||
npm install axe-core --save-dev
|
||||
|
||||
mkdir -p axe/node_modules
|
||||
npm install --prefix axe 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/
|
||||
|
||||
cp axe/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/init.php --add-core-features-to-theme
|
||||
php admin/tool/behat/cli/run.php --tags=@accessibility
|
||||
|
@ -17,7 +17,7 @@
|
||||
<location>behat/axe</location>
|
||||
<name>axe-core</name>
|
||||
<description>Accessibility testing engine for websites and other HTML-based user interfaces.</description>
|
||||
<version>4.6.3</version>
|
||||
<version>4.7.2</version>
|
||||
<license>MPL</license>
|
||||
<licenseversion>2.0</licenseversion>
|
||||
<repository>https://github.com/dequelabs/axe-core</repository>
|
||||
|
Loading…
x
Reference in New Issue
Block a user