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

    protractor-axspublic

    protractor-axs

    This is essentially a fork of https://github.com/angular/protractor-accessibility-plugin that runs on each test instead of at the end of the suite.

    Protractor will run each set of audits (depending on your configuration) on your existing end-to-end tests to ensure your site is free of obvious errors. In this kind of testing, there is no concept of "warnings"–only pass or fail. In your configuration, you can decide whether warnings should pass or fail your build.

    Protractor now supports the Accessibility Developer Tools, the same audit library used by the Chrome browser extension. Protractor runs an audit locally by injecting the Dev Tools script into WebDriver pages, and it can diagnose issues including missing labels, incorrect ARIA attributes and color contrast.

    Enable this plugin in your Protractor config file:

      exports.config = {
          ...
          plugins: [ {
            chromeA11YDevTools: {
              treatWarningsAsFailures: true,
              axsConfig: {}
            },
            path: "node_modules/protractor-axs" // this path is relative to the config file
          } ]
        }

    axsConfig

    An optional that object can be used to configure the validation options. See this page for options

    install

    npm i protractor-axs

    Downloadsweekly downloads

    0

    version

    1.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar