Next Perpendicular Moonlanding
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

webdriver-accessibility-audit

1.1.6 • Public • Published

webdriver-accessibility-audit

Accessibility audits during webdriver tests

Installation

$ npm install webdriver-accessiblity-audit --save-dev

Writing tests

In your protractor test you can include an audit as following:

var options = {
    resultPath: 'test/accessibility/audits',
    auditRulesToIgnore: ['lowContrastElements']
};
var accessibility = require('webdriver-accessibility-audit')(browser, options);

describe('protractor test', function() {
    ...

    it('does an audit', function() {
        ....
        accessiblity.audit('nameOfAudit');
        ....
    });

    ...
})

Possible rules

Keywords

none

install

npm i webdriver-accessibility-audit

Downloadsweekly downloads

0

version

1.1.6

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar