Steps definitions to assist with accessibility testing.
More...
|
| get_axe_config_for_tags (?array $standardtags=null, ?array $extratags=null) |
| Get the configuration to use with Axe.
|
|
| run_axe_for_tags (array $standardtags=[], array $extratags=[]) |
| Run the Axe tests.
|
|
Steps definitions to assist with accessibility testing.
- Copyright
- 2020 Andrew Nicols andre.nosp@m.w@ni.nosp@m.cols..nosp@m.co.u.nosp@m.k
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_axe_config_for_tags()
behat_accessibility::get_axe_config_for_tags |
( |
?array | $standardtags = null, |
|
|
?array | $extratags = null ) |
|
protected |
◆ getSession()
behat_session_interface::getSession |
( |
| $name = null | ) |
|
|
inherited |
Returns the Mink session.
- Parameters
-
string | null | $name | name of the session OR active session will be used |
- Return values
-
Implemented in behat_form_field.
◆ run_axe_for_tags()
behat_accessibility::run_axe_for_tags |
( |
array | $standardtags = [], |
|
|
array | $extratags = [] ) |
|
protected |
◆ run_axe_validation_for_tags()
behat_accessibility::run_axe_validation_for_tags |
( |
string | $standardtags = '', |
|
|
string | $extratags = '' ) |
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/v4.7.2/doc/rule-descriptions.md.
@Then the page should meet accessibility standards @Then the page should meet accessibility standards with :extratags extra tests @Then the page should meet :standardtags accessibility standards
- Parameters
-
string | $standardtags | Comma-separated list of standard tags to run |
string | $extratags | Comma-separated list of tags to run in addition to the standard tags |
◆ PAGE_READY_JS
const behat_session_interface::PAGE_READY_JS |
|
inherited |
Initial value:= "document.readyState === 'complete' && " .
"(typeof M !== 'object' || typeof M.util !== 'object' || " .
"typeof M.util.pending_js === 'undefined' || M.util.pending_js.length === 0)"
The JS code to check that the page is ready.
The document must be complete and either M.util.pending_js must be empty, or it must not be defined at all.
The documentation for this class was generated from the following file: