Merge branch 'MDL-86405' of https://github.com/paulholden/moodle
This commit is contained in:
Vendored
+3
-3
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@ mkdir -p /tmp/axe
|
||||
cd /tmp/axe
|
||||
npm install axe-core --save-dev
|
||||
|
||||
Note down the version number displayed by the command, to update lib/thirdpartylibs.xml accordingly.
|
||||
Note down the version number displayed by the command, to update public/lib/thirdpartylibs.xml accordingly.
|
||||
|
||||
If the command does not output a version number, the version number can be found in package.json. You can simply open package.json
|
||||
using your desired editor and look for the version number of axe-core. Alternatively, you may use the following commands:
|
||||
@@ -19,15 +19,15 @@ using your desired editor and look for the version number of axe-core. Alternati
|
||||
|
||||
2/ Copy the following file to your local Moodle directory, to replace the old one:
|
||||
|
||||
cp /tmp/axe/node_modules/axe-core/axe.min.js [PATH TO YOUR MOODLE]/lib/behat/axe/
|
||||
cp /tmp/axe/node_modules/axe-core/axe.min.js [PATH TO YOUR MOODLE]/public/lib/behat/axe/
|
||||
|
||||
3/ Update lib/thirdpartylibs.xml with the new version number.
|
||||
3/ Update public/lib/thirdpartylibs.xml with the new version number.
|
||||
|
||||
4/ Update the PHPDoc block of \behat_accessibility::run_axe_validation_for_tags() in
|
||||
[PATH TO YOUR MOODLE]/lib/tests/behat/behat_accessibility.php to reflect the new version number.
|
||||
[PATH TO YOUR MOODLE]/public/lib/tests/behat/behat_accessibility.php to reflect the new version number.
|
||||
|
||||
5/ 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 --add-core-features-to-theme
|
||||
php admin/tool/behat/cli/run.php --tags=@accessibility
|
||||
php public/admin/tool/behat/cli/init.php --add-core-features-to-theme
|
||||
php public/admin/tool/behat/cli/run.php --tags=@accessibility
|
||||
|
||||
@@ -37,7 +37,7 @@ class behat_accessibility extends behat_base {
|
||||
* There are standard tags to ensure WCAG 2.1 A, WCAG 2.1 AA, and Section 508 compliance.
|
||||
* It is also possible to specify any desired optional tags.
|
||||
*
|
||||
* See {@link https://github.com/dequelabs/axe-core/blob/v4.10.2/doc/rule-descriptions.md} for the list of available tags
|
||||
* See {@link https://github.com/dequelabs/axe-core/blob/v4.10.3/doc/rule-descriptions.md} for the list of available tags
|
||||
*
|
||||
* @Then the page should meet accessibility standards
|
||||
* @Then the page should meet accessibility standards with :extratags extra tests
|
||||
@@ -59,7 +59,7 @@ class behat_accessibility extends behat_base {
|
||||
* There are standard tags to ensure WCAG 2.1 A, WCAG 2.1 AA, and Section 508 compliance.
|
||||
* It is also possible to specify any desired optional tags.
|
||||
*
|
||||
* See {@link https://github.com/dequelabs/axe-core/blob/v4.10.0/doc/rule-descriptions.md} for the list of available tags
|
||||
* See {@see behat_accessibility::run_axe_validation_for_tags} for details of the supported tags.
|
||||
*
|
||||
* @Then the :element :selector should meet accessibility standards
|
||||
* @Then the :element :selector should meet accessibility standards with :extratags extra tests
|
||||
|
||||
@@ -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.10.2</version>
|
||||
<version>4.10.3</version>
|
||||
<license>MPL</license>
|
||||
<licenseversion>2.0</licenseversion>
|
||||
<repository>https://github.com/dequelabs/axe-core</repository>
|
||||
|
||||
Reference in New Issue
Block a user