wdio-accessibility-service
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"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", |
@@ -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 { } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5988
111