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

wdio-accessibility-service

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wdio-accessibility-service - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

5

package.json
{
"name": "wdio-accessibility-service",
"version": "0.0.2",
"version": "0.0.3",
"description": "Accessibility testing for webdriverio using Axe",
"main": "src/index.js",
"types": "./types/index.d.ts",
"engines": {
"node": ">=10.0.0"
},
"scripts": {

@@ -8,0 +11,0 @@ "clean": "rimraf coverage build .tmp",

8

src/service.js

@@ -5,3 +5,6 @@ import axe from 'axe-core'

export default class AccessibilityService {
constructor () {
this.accessibility = new Accessibility()
}
before() {

@@ -13,6 +16,5 @@ browser.addCommand('configureAxe', function (options = {}) {

browser.addCommand('runAxe', function () {
const accessibility = new Accessibility()
return accessibility.runAxe()
return this.accessibility.runAxe()
})
}
}

@@ -8,2 +8,7 @@ declare global {

runAxe(): any;
/**
* Configures accessibility options
*/
configureAxe(): any;
}

@@ -10,0 +15,0 @@ interface Element { }

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