Skip to content

Commit

Permalink
fix axe
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jan 7, 2025
1 parent 0c3a9f4 commit 3456e15
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/plugins/axe/axePostScript.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const axe = require('axe-core').source;
const clone = require('lodash.clonedeep');
const log = require('intel').getLogger('sitespeedio.plugin.axe');

module.exports = async function runAxe(context) {
// Insert the axe source
Expand All @@ -15,15 +14,15 @@ module.exports = async function runAxe(context) {
delete configureOptions.run;

if (Object.keys(configureOptions).length > 0) {
log.info('Configure AXE with %j', configureOptions);
context.log.info('Configure AXE with %j', configureOptions);
}
await context.selenium.driver.executeScript(
`axe.configure(${JSON.stringify(configureOptions)});`,
'CONFIGURE_AXE'
);

if (runOptions) {
log.info('Run AXE with run options %j', runOptions);
context.log.info('Run AXE with run options %j', runOptions);
}

// Get the result from axe
Expand Down

0 comments on commit 3456e15

Please sign in to comment.