Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]

Steps definitions to open and close action menus.

Copyright: 2020 Andrew Nicols <andrew@nicols.co.uk>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 223 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class

behat_accessibility:: (3 methods):
  run_axe_validation_for_tags()
  run_axe_for_tags()
  get_axe_config_for_tags()


Class: behat_accessibility  - X-Ref

Steps definitions to assist with accessibility testing.

run_axe_validation_for_tags(string $standardtags = '', string $extratags = '')   X-Ref
Run the axe-core accessibility tests.

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.

The list of available tags can be found at
https://github.com/dequelabs/axe-core/blob/v3.5.5/doc/rule-descriptions.md.

param: string $standardtags Comma-separated list of standard tags to run
param: string $extratags Comma-separated list of tags to run in addition to the standard tags

run_axe_for_tags(array $standardtags = [], array $extratags = [])   X-Ref
Run the Axe tests.

See https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md for details of the supported
tags.

param: array $standardtags The list of standard tags to run
param: array $extratags The list of tags, in addition to the standard tags, to run

get_axe_config_for_tags(?array $standardtags = null, ?array $extratags = null)   X-Ref
Get the configuration to use with Axe.

See https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md for details of the rules.

param: array|null $standardtags The list of standard tags to run
param: array|null $extratags The list of tags, in addition to the standard tags, to run
return: string The JSON-encoded configuration.