testcafe-accessibility

1.0.0 • Public • Published

Testcafe accessibility

Small lib that can be used to run accessibility for testcafe using axe and generate html report with screenshot

Build Status

content

Features

  • uses axe as underlying accessibility engine
  • can be used to generate report for each url separately due to ${MODULE} in the test name
  • will automatically take a screenshot after running the accessibility test and link it to the accessibility test
  • supports quarantine mode and parallel test execution

Install

npm install testcafe-accessibility

Configuration

Once installed add accessibility configuration in .testcaferc.js file

module.exports = {
  // some other config
  accessibility: {
    path: 'tmp',
    pathPattern: '${DATE}/${FIXTURE}/accessibility/[${TEST}]_[${MODULE}]_${TIME}_${QUARANTINE_ATTEMPT}.html',
  },
};
Required Argument Description Example
Yes accessibility.path The base directory where accessibility reports will be saved tmp
Yes accessibility.pathPattern A pattern that defines how TestCafe composes the relative path to a accessibility file. See Screenshot and Video Directories. ${DATE}/${TEST}.json

Examples

See working examples in examples folder

Author

Rafal Szczepankiewicz

Readme

Keywords

Package Sidebar

Install

npm i testcafe-accessibility

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

8.7 kB

Total Files

5

Last publish

Collaborators

  • rafalsep