axe Aggregator appending on previous url results. Causing incorrect result (#2928)

This commit is contained in:
gfoxCartrawler 2020-03-16 19:07:53 +00:00 committed by GitHub
parent 440713350d
commit 97d7bda059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -162,8 +162,9 @@ module.exports = {
}
const errorStats = new Stats();
const axeAggregatorPerURL = new AxeAggregator(this.options);
let axeAggregatorPerURL;
for (let resultIndex = 0; resultIndex < result.length; resultIndex++) {
axeAggregatorPerURL = new AxeAggregator(this.options);
// If we use scripts or multiple, use the URL from the tested page
// so that we can handle click on links etc
// see https://github.com/sitespeedio/sitespeed.io/issues/2260