Skip to content

Commit

Permalink
core: remove tap-targets and show target-size in a11y (#15906)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraine authored Apr 1, 2024
1 parent 3f4b61d commit acfd1fb
Show file tree
Hide file tree
Showing 64 changed files with 49 additions and 2,819 deletions.
10 changes: 0 additions & 10 deletions cli/test/fixtures/dobetterweb/dbw_tester.html
Original file line number Diff line number Diff line change
Expand Up @@ -242,16 +242,6 @@ <h2 id="toppy" style="background-image:url('');">Do better web tester page</h2>
<!-- FAIL(efficient-animated-content): animated gif found -->
<img src="lighthouse-rotating.gif" width="811" height="462">

<!-- FAIL(tap-targets): buttons too close together -->
<style>
.small-button {
display: block;
width: 200px;
}
</style>
<button class="small-button">Do something</button>
<button class="small-button">Do something else</button>

<!-- Some websites overwrite the original Error object. The captureJSCallUsage function
relies on the native Error object and prepareStackTrace from V8. When overwriting the stack
property the e.stack inside the gatherer won't be in the correct format
Expand Down
207 changes: 0 additions & 207 deletions cli/test/fixtures/seo/seo-tap-targets.html

This file was deleted.

2 changes: 0 additions & 2 deletions cli/test/smokehouse/core-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ import screenshot from './test-definitions/screenshot.js';
import seoFailing from './test-definitions/seo-failing.js';
import seoPassing from './test-definitions/seo-passing.js';
import seoStatus403 from './test-definitions/seo-status-403.js';
import seoTapTargets from './test-definitions/seo-tap-targets.js';
import serviceWorkerReloaded from './test-definitions/service-worker-reloaded.js';
import shiftAttribution from './test-definitions/shift-attribution.js';
import sourceMaps from './test-definitions/source-maps.js';
Expand Down Expand Up @@ -126,7 +125,6 @@ const smokeTests = [
seoFailing,
seoPassing,
seoStatus403,
seoTapTargets,
serviceWorkerReloaded,
shiftAttribution,
sourceMaps,
Expand Down
4 changes: 2 additions & 2 deletions cli/test/smokehouse/test-definitions/dobetterweb.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,15 +442,15 @@ const expectations = {
},
'dom-size': {
score: 1,
numericValue: 154,
numericValue: 151,
details: {
items: [
{
statistic: 'Total DOM Elements',
value: {
type: 'numeric',
granularity: 1,
value: 154,
value: 151,
},
},
{
Expand Down
Loading

0 comments on commit acfd1fb

Please sign in to comment.