Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cucumber-puppeteer-axe

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cucumber-puppeteer-axe

This package contains step definitions to test webpages for accessibility issues with AxeCore

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by1900%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

CucumberPuppeteerAxe

Step definitions to test webpages for accessibility issues with AxeCore

How to use

This setup relies on the package cucumber-puppeteer to work properly.

Checkout this setup to see how you can use this in your project.

If you're using docker then you should checkout puppeteer-cucumber. It is a pre-build docker container for testing with cucumber and puppeteer. This package is also included so you can check for accessibility issues right away!

Available steps

Select tags

Given I use the accessibility standards "wcag2a,wcag2aa"

This statement will set the tags for standards you want to use for the scenario you are running.

Select the standards you want to use. See the axe website for a list of supported tags.

Disable rules

When I disable the accessibility rule "color-contrast,link-name"

Disable accessibility rules for the current scenario

Test the whole page

Then the page should be accessible

Test a section of a page

Then the section "#content" should be accessible

Exclude something when testing the whole page

Then the page excluding "#content img" should be accessible

Exclude something when testing a section

Then the section "#homepage" excluding "img" should be accessible

Output

All output is directly visible in the command line:

Example output in the pipeline

If you can't find your elements it is quite easy to find them with the unique selector shown in the output (colored cyan) and add custom styling to them.

Show the error

Keywords

FAQs

Package last updated on 13 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc