From cece5041d3c7364237950fb05be95527c7beab92 Mon Sep 17 00:00:00 2001 From: Matt Zeunert Date: Sat, 25 May 2019 00:44:16 +0100 Subject: [PATCH] tests: update a11y sample artifacts (#9010) --- .../html/renderer/category-renderer-test.js | 2 +- .../test/results/artifacts/artifacts.json | 83 ++++--------------- lighthouse-core/test/results/sample_v2.json | 24 +++--- proto/sample_v2_round_trip.json | 24 +++--- 4 files changed, 39 insertions(+), 94 deletions(-) diff --git a/lighthouse-core/test/report/html/renderer/category-renderer-test.js b/lighthouse-core/test/report/html/renderer/category-renderer-test.js index 789eb822019a..56c0fc7646ef 100644 --- a/lighthouse-core/test/report/html/renderer/category-renderer-test.js +++ b/lighthouse-core/test/report/html/renderer/category-renderer-test.js @@ -242,7 +242,7 @@ describe('CategoryRenderer', () => { const categoryDOM = renderer.render(category, sampleResults.categoryGroups); const gauge = categoryDOM.querySelector('.lh-gauge__percentage'); - assert.equal(gauge.textContent.trim(), '38', 'score is 0-100'); + assert.equal(gauge.textContent.trim(), '46', 'score is 0-100'); const score = categoryDOM.querySelector('.lh-category-header'); const value = categoryDOM.querySelector('.lh-gauge__percentage'); diff --git a/lighthouse-core/test/results/artifacts/artifacts.json b/lighthouse-core/test/results/artifacts/artifacts.json index 66b699a1fbe6..2cbcd6481379 100644 --- a/lighthouse-core/test/results/artifacts/artifacts.json +++ b/lighthouse-core/test/results/artifacts/artifacts.json @@ -1337,29 +1337,28 @@ ], "notApplicable": [ { - "id": "aria-allowed-attr", + "id": "accesskeys", "impact": null, "tags": [ - "cat.aria", - "wcag2a", - "wcag412" + "best-practice", + "cat.keyboard" ], - "description": "Ensures ARIA attributes are allowed for an element's role", - "help": "Elements must only use allowed ARIA attributes", - "helpUrl": "https://dequeuniversity.com/rules/axe/3.1/aria-allowed-attr?application=axeAPI", + "description": "Ensures every accesskey attribute value is unique", + "help": "accesskey attribute value must be unique", + "helpUrl": "https://dequeuniversity.com/rules/axe/3.2/accesskeys?application=axeAPI", "nodes": [] }, { - "id": "aria-dpub-role-fallback", + "id": "aria-allowed-attr", "impact": null, "tags": [ "cat.aria", "wcag2a", - "wcag131" + "wcag412" ], - "description": "Ensures unsupported DPUB roles are only used on elements with implicit fallback roles", - "help": "Unsupported DPUB ARIA roles should be used on elements with implicit fallback roles", - "helpUrl": "https://dequeuniversity.com/rules/axe/3.1/aria-dpub-role-fallback?application=axeAPI", + "description": "Ensures ARIA attributes are allowed for an element's role", + "help": "Elements must only use allowed ARIA attributes", + "helpUrl": "https://dequeuniversity.com/rules/axe/3.2/aria-allowed-attr?application=axeAPI", "nodes": [] }, { @@ -1452,22 +1451,7 @@ ], "description": "Ensures