parent
8e0e659c3f
commit
e3a104e3b7
|
|
@ -1,15 +1,14 @@
|
|||
const axe = require('axe-core').source;
|
||||
const clone = require('lodash.clonedeep');
|
||||
|
||||
module.exports = async function runAxe(context) {
|
||||
// Insert the axe source
|
||||
await context.selenium.driver.executeScript(axe);
|
||||
|
||||
const runOptions = context.options.axe.run
|
||||
? clone(context.options.axe.run)
|
||||
? structuredClone(context.options.axe.run)
|
||||
: {};
|
||||
const configureOptions = context.options.axe
|
||||
? clone(context.options.axe)
|
||||
? structuredClone(context.options.axe)
|
||||
: {};
|
||||
delete configureOptions.run;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import clone from 'lodash.clonedeep';
|
||||
import { filterMetrics } from './metricsFilter.js';
|
||||
|
||||
let filterForType = {};
|
||||
|
|
@ -34,7 +33,8 @@ export function filterMessage(message) {
|
|||
return message;
|
||||
}
|
||||
|
||||
const filteredMessage = clone(message);
|
||||
filteredMessage.data = filterMetrics(filteredMessage.data, filterConfig);
|
||||
return filteredMessage;
|
||||
return {
|
||||
...message,
|
||||
data: filterMetrics(message.data, filterConfig)
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@
|
|||
"influx": "5.9.3",
|
||||
"jstransformer-markdown-it": "3.0.0",
|
||||
"junit-report-builder": "3.2.1",
|
||||
"lodash.clonedeep": "4.5.0",
|
||||
"lodash.get": "4.4.2",
|
||||
"lodash.isempty": "4.4.0",
|
||||
"lodash.merge": "4.6.2",
|
||||
|
|
@ -7087,11 +7086,6 @@
|
|||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||
},
|
||||
"node_modules/lodash.clonedeep": {
|
||||
"version": "4.5.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz",
|
||||
"integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ=="
|
||||
},
|
||||
"node_modules/lodash.get": {
|
||||
"version": "4.4.2",
|
||||
"resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
|
||||
|
|
|
|||
|
|
@ -99,7 +99,6 @@
|
|||
"influx": "5.9.3",
|
||||
"jstransformer-markdown-it": "3.0.0",
|
||||
"junit-report-builder": "3.2.1",
|
||||
"lodash.clonedeep": "4.5.0",
|
||||
"lodash.get": "4.4.2",
|
||||
"lodash.isempty": "4.4.0",
|
||||
"lodash.merge": "4.6.2",
|
||||
|
|
|
|||
Loading…
Reference in New Issue