Skip to content

Commit

Permalink
core: always run axe gatherer last (#8216)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce authored and brendankenny committed Apr 12, 2019
1 parent 2553a24 commit 9823a5a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lighthouse-cli/test/cli/__snapshots__/index-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1081,9 +1081,6 @@ Object {
Object {
"path": "chrome-console-messages",
},
Object {
"path": "accessibility",
},
Object {
"path": "anchor-elements",
},
Expand Down Expand Up @@ -1132,6 +1129,9 @@ Object {
Object {
"path": "seo/tap-targets",
},
Object {
"path": "accessibility",
},
],
"networkQuietThresholdMs": 1000,
"passName": "defaultPass",
Expand Down
1 change: 1 addition & 0 deletions lighthouse-cli/test/fixtures/byte-efficiency/tester.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ <h2>Byte efficiency tester page</h2>
<div class="onscreen" style="width: 30px; height: 30px; background: 25% 50% url(lighthouse-480x320.jpg?sprite);"></div>
<div class="onscreen" style="width: 30px; height: 30px; background: 50% 50% url(lighthouse-480x320.jpg?sprite);"></div>
<div class="onscreen" style="width: 30px; height: 30px; background: 75% 50% url(lighthouse-480x320.jpg?sprite);"></div>
<p style="background: blue;">Add some text here so axe will scroll to the bottom</p>
</div>

<template id="lazily-loaded-image">
Expand Down
1 change: 1 addition & 0 deletions lighthouse-cli/test/smokehouse/byte-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
extends: 'lighthouse:full',
settings: {
onlyAudits: [
'accesskeys', // run axe on the page since we've had problems with interactions
'network-requests',
'offscreen-images',
'uses-webp-images',
Expand Down
3 changes: 2 additions & 1 deletion lighthouse-core/config/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ const defaultConfig = {
'viewport-dimensions',
'runtime-exceptions',
'chrome-console-messages',
'accessibility',
'anchor-elements',
'image-elements',
'link-elements',
Expand All @@ -119,6 +118,8 @@ const defaultConfig = {
'seo/embedded-content',
'seo/robots-txt',
'seo/tap-targets',
// Always run axe last because it scrolls the page down to the bottom
'accessibility',
],
},
{
Expand Down

0 comments on commit 9823a5a

Please sign in to comment.