Skip to content

ankit-dq/webdriverio-cucumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Axe DevTools WebdriverIO Example

Prerequisites

  • npm
  • NodeJS (6.10 or higher)

Installation information

In order to use this sample project, you will need to clone the repository from GitHub. Once you've done that, in your terminal, navigate from the project root back to this example.

cd node/webdriverio-cucumber

Next, you'll need to install the dependencies for this project including axe DevTools WebdriverIO and the DevTools Reporter. They are already listed in package.json, but access to Deque's private registry is required to install them. To do so, follow this guide on the Deque documentation site. Once your access to Deque's private registry has been configured, dependencies for this project can be installed as normal through yarn or npm.

npm install

Running the test cases

Use this command to run the examples:

npm test

Project Setup

The sample test feature and step definition files are held within the /features and /features/steps.js directory. They contain examples of how to set up the axe DevTools WebdriverIO and Reporter APIs and test for accessibility. Also the after scenario hooks is defined in the ./wdio.conf.js in which the html, junit and xmls reports are generater.

Once the sample project has been run, results can be found in the a11y-results folder.

Modifying this project

npm test runs this command defined in package.json

"scripts": {
    "test": "rimraf ./a11y-results && npx wdio run wdio.conf.js"
  },

The rimraf command will clear any saved results, so if you want to store previous runs you should remove this part of the run command. If you modify this project and want to publish your results in a different folder other than ./ally-results then you should update the dir here as well.

Additional documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published