Socket
Socket
Sign inDemoInstall

wdio-axe

Package Overview
Dependencies
188
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 2.1.2

244

lib/binder.js

@@ -20,16 +20,53 @@ const axeSource = require('axe-core').source;

});
result.violations.forEach(value => {
value.nodes.forEach(value1 => {
resultAxeObject.description = value.description;
resultAxeObject.help = value.help;
resultAxeObject.helpUrl = value.helpUrl;
resultAxeObject.id = value.id;
resultAxeObject.impact = (value1.any[0]).impact;
resultAxeObject.message = (value1.any[0]).message;
resultAxeObject.failureSummary = value1.failureSummary;
resultAxeObject.html = value1.html;
resultAxeObject.target = value1.target;
try {
if (result.violations.length > 0) {
result.violations.forEach(value => {
value.nodes.forEach(value1 => {
resultAxeObject.description = value.description;
resultAxeObject.help = value.help;
resultAxeObject.helpUrl = value.helpUrl;
resultAxeObject.id = value.id;
try {
resultAxeObject.impact = (value1.any[0]).impact;
resultAxeObject.message = (value1.any[0]).message;
} catch (e) {
}
resultAxeObject.failureSummary = value1.failureSummary;
resultAxeObject.html = value1.html;
resultAxeObject.target = value1.target;
resultAxeArray.push(resultAxeObject);
});
});
}
if (result.violations.length === 0) {
resultAxeObject.result = 'No Violations found in this page';
resultAxeArray.push(resultAxeObject);
});
});
}
} catch (e) {
if (result.value.violations.length > 0) {
result.value.violations.forEach(value => {
value.nodes.forEach(value1 => {
resultAxeObject.description = value.description;
resultAxeObject.help = value.help;
resultAxeObject.helpUrl = value.helpUrl;
resultAxeObject.id = value.id;
try {
resultAxeObject.impact = (value1.any[0]).impact;
resultAxeObject.message = (value1.any[0]).message;
} catch (e) {
}
resultAxeObject.failureSummary = value1.failureSummary;
resultAxeObject.html = value1.html;
resultAxeObject.target = value1.target;
resultAxeArray.push(resultAxeObject);
});
});
}
if (result.value.violations.length === 0) {
resultAxeObject.result = 'No Violations found in this page';
resultAxeArray.push(resultAxeObject);
}
}
returnObject.violations = resultAxeArray;

@@ -58,14 +95,41 @@ return returnObject;

});
result.violations.forEach(value => {
value.nodes.forEach(value1 => {
resultAxeObject.description = value.description;
resultAxeObject.help = value.help;
resultAxeObject.helpUrl = value.helpUrl;
resultAxeObject.id = value.id;
resultAxeObject.failureSummary = value1.failureSummary;
resultAxeObject.html = value1.html;
resultAxeObject.target = value1.target;
try {
if (result.violations.length > 0) {
result.violations.forEach(value => {
value.nodes.forEach(value1 => {
resultAxeObject.description = value.description;
resultAxeObject.help = value.help;
resultAxeObject.helpUrl = value.helpUrl;
resultAxeObject.id = value.id;
resultAxeObject.failureSummary = value1.failureSummary;
resultAxeObject.html = value1.html;
resultAxeObject.target = value1.target;
resultAxeArray.push(resultAxeObject);
});
});
}
if (result.violations.length === 0) {
resultAxeObject.result = 'Page is aligned with the standards';
resultAxeArray.push(resultAxeObject);
});
});
}
} catch (e) {
if (result.value.violations.length > 0) {
result.value.violations.forEach(value => {
value.nodes.forEach(value1 => {
resultAxeObject.description = value.description;
resultAxeObject.help = value.help;
resultAxeObject.helpUrl = value.helpUrl;
resultAxeObject.id = value.id;
resultAxeObject.failureSummary = value1.failureSummary;
resultAxeObject.html = value1.html;
resultAxeObject.target = value1.target;
resultAxeArray.push(resultAxeObject);
});
});
}
if (result.value.violations.length === 0) {
resultAxeObject.result = 'Page is aligned with the standards';
resultAxeArray.push(resultAxeObject);
}
}
returnObject.bestPractice = resultAxeArray;

@@ -102,20 +166,53 @@ return returnObject;

}, runOnlyConfig);
result.violations.forEach(value => {
value.nodes.forEach(value1 => {
resultAxeObject.description = value.description;
resultAxeObject.help = value.help;
resultAxeObject.helpUrl = value.helpUrl;
resultAxeObject.id = value.id;
try {
resultAxeObject.impact = (value1.any[0]).impact;
resultAxeObject.message = (value1.any[0]).message;
} catch (e) {
try {
if (result.violations.length > 0) {
result.violations.forEach(value => {
value.nodes.forEach(value1 => {
resultAxeObject.description = value.description;
resultAxeObject.help = value.help;
resultAxeObject.helpUrl = value.helpUrl;
resultAxeObject.id = value.id;
try {
resultAxeObject.impact = (value1.any[0]).impact;
resultAxeObject.message = (value1.any[0]).message;
} catch (e) {
}
resultAxeObject.failureSummary = value1.failureSummary;
resultAxeObject.html = value1.html;
resultAxeObject.target = value1.target;
}
resultAxeObject.failureSummary = value1.failureSummary;
resultAxeObject.html = value1.html;
resultAxeObject.target = value1.target;
resultAxeArray.push(resultAxeObject);
});
});
}
if (result.violations.length === 0) {
resultAxeObject.result = 'No Violations found in this page';
resultAxeArray.push(resultAxeObject);
});
});
}
} catch (e) {
if (result.value.violations.length > 0) {
result.value.violations.forEach(value => {
value.nodes.forEach(value1 => {
resultAxeObject.description = value.description;
resultAxeObject.help = value.help;
resultAxeObject.helpUrl = value.helpUrl;
resultAxeObject.id = value.id;
try {
resultAxeObject.impact = (value1.any[0]).impact;
resultAxeObject.message = (value1.any[0]).message;
} catch (e) {
}
resultAxeObject.failureSummary = value1.failureSummary;
resultAxeObject.html = value1.html;
resultAxeObject.target = value1.target;
resultAxeArray.push(resultAxeObject);
});
});
}
if (result.value.violations.length === 0) {
resultAxeObject.result = 'No Violations found in this page';
resultAxeArray.push(resultAxeObject);
}
}
returnObject.result = resultAxeArray;

@@ -158,20 +255,53 @@ return returnObject;

}, runOnlyConfig);
result.violations.forEach(value => {
value.nodes.forEach(value1 => {
resultAxeObject.description = value.description;
resultAxeObject.help = value.help;
resultAxeObject.helpUrl = value.helpUrl;
resultAxeObject.id = value.id;
try {
resultAxeObject.impact = (value1.any[0]).impact;
resultAxeObject.message = (value1.any[0]).message;
} catch (e) {
try {
if (result.violations.length > 0) {
result.violations.forEach(value => {
value.nodes.forEach(value1 => {
resultAxeObject.description = value.description;
resultAxeObject.help = value.help;
resultAxeObject.helpUrl = value.helpUrl;
resultAxeObject.id = value.id;
try {
resultAxeObject.impact = (value1.any[0]).impact;
resultAxeObject.message = (value1.any[0]).message;
} catch (e) {
}
resultAxeObject.failureSummary = value1.failureSummary;
resultAxeObject.html = value1.html;
resultAxeObject.target = value1.target;
}
resultAxeObject.failureSummary = value1.failureSummary;
resultAxeObject.html = value1.html;
resultAxeObject.target = value1.target;
resultAxeArray.push(resultAxeObject);
});
});
}
if (result.violations.length === 0) {
resultAxeObject.result = 'No Violations found in this page';
resultAxeArray.push(resultAxeObject);
});
});
}
} catch (e) {
if (result.value.violations.length > 0) {
result.value.violations.forEach(value => {
value.nodes.forEach(value1 => {
resultAxeObject.description = value.description;
resultAxeObject.help = value.help;
resultAxeObject.helpUrl = value.helpUrl;
resultAxeObject.id = value.id;
try {
resultAxeObject.impact = (value1.any[0]).impact;
resultAxeObject.message = (value1.any[0]).message;
} catch (e) {
}
resultAxeObject.failureSummary = value1.failureSummary;
resultAxeObject.html = value1.html;
resultAxeObject.target = value1.target;
resultAxeArray.push(resultAxeObject);
});
});
}
if (result.value.violations.length === 0) {
resultAxeObject.result = 'No Violations found in this page';
resultAxeArray.push(resultAxeObject);
}
}
returnObject.result = resultAxeArray;

@@ -237,2 +367,2 @@ return returnObject;

module.exports = new axeConfig();
module.exports = new axeConfig();
{
"name": "wdio-axe",
"version": "2.1.1",
"version": "2.1.2",
"description": "Module to inject and analyze web pages in webdriverio using aXe",

@@ -36,5 +36,5 @@ "main": "lib/binder.js",

"dependencies": {
"axe-core": "3.3.1"
"axe-core": "3.3.2"
},
"license": "ISC"
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc