diff --git a/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap b/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap index 1f34fbe163ea..19d1886f2778 100644 --- a/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap +++ b/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap @@ -129,6 +129,9 @@ Object { Object { "path": "manual/pwa-each-page-has-url", }, + Object { + "path": "accessibility/accesskeys", + }, Object { "path": "accessibility/aria-allowed-attr", }, @@ -231,9 +234,6 @@ Object { Object { "path": "accessibility/video-description", }, - Object { - "path": "accessibility/manual/accesskeys", - }, Object { "path": "accessibility/manual/custom-controls-labels", }, @@ -376,6 +376,11 @@ Object { "categories": Object { "accessibility": Object { "auditRefs": Array [ + Object { + "group": "a11y-navigation", + "id": "accesskeys", + "weight": 3, + }, Object { "group": "a11y-aria", "id": "aria-allowed-attr", @@ -412,17 +417,17 @@ Object { "weight": 5, }, Object { - "group": "a11y-correct-attributes", + "group": "a11y-audio-video", "id": "audio-caption", "weight": 4, }, Object { - "group": "a11y-element-names", + "group": "a11y-names-labels", "id": "button-name", "weight": 10, }, Object { - "group": "a11y-describe-contents", + "group": "a11y-navigation", "id": "bypass", "weight": 10, }, @@ -432,27 +437,27 @@ Object { "weight": 6, }, Object { - "group": "a11y-well-structured", + "group": "a11y-tables-lists", "id": "definition-list", "weight": 1, }, Object { - "group": "a11y-well-structured", + "group": "a11y-tables-lists", "id": "dlitem", "weight": 1, }, Object { - "group": "a11y-describe-contents", + "group": "a11y-names-labels", "id": "document-title", "weight": 2, }, Object { - "group": "a11y-well-structured", + "group": "a11y-best-practices", "id": "duplicate-id", "weight": 5, }, Object { - "group": "a11y-describe-contents", + "group": "a11y-names-labels", "id": "frame-title", "weight": 5, }, @@ -467,67 +472,67 @@ Object { "weight": 1, }, Object { - "group": "a11y-correct-attributes", + "group": "a11y-names-labels", "id": "image-alt", "weight": 8, }, Object { - "group": "a11y-correct-attributes", + "group": "a11y-names-labels", "id": "input-image-alt", "weight": 1, }, Object { - "group": "a11y-describe-contents", + "group": "a11y-names-labels", "id": "label", "weight": 10, }, Object { - "group": "a11y-describe-contents", + "group": "a11y-tables-lists", "id": "layout-table", "weight": 1, }, Object { - "group": "a11y-element-names", + "group": "a11y-names-labels", "id": "link-name", "weight": 9, }, Object { - "group": "a11y-well-structured", + "group": "a11y-tables-lists", "id": "list", "weight": 5, }, Object { - "group": "a11y-well-structured", + "group": "a11y-tables-lists", "id": "listitem", "weight": 4, }, Object { - "group": "a11y-meta", + "group": "a11y-best-practices", "id": "meta-refresh", "weight": 1, }, Object { - "group": "a11y-meta", + "group": "a11y-best-practices", "id": "meta-viewport", "weight": 3, }, Object { - "group": "a11y-describe-contents", + "group": "a11y-names-labels", "id": "object-alt", "weight": 4, }, Object { - "group": "a11y-correct-attributes", + "group": "a11y-navigation", "id": "tabindex", "weight": 4, }, Object { - "group": "a11y-correct-attributes", + "group": "a11y-tables-lists", "id": "td-headers-attr", "weight": 1, }, Object { - "group": "a11y-correct-attributes", + "group": "a11y-tables-lists", "id": "th-has-data-cells", "weight": 1, }, @@ -537,19 +542,15 @@ Object { "weight": 1, }, Object { - "group": "a11y-describe-contents", + "group": "a11y-audio-video", "id": "video-caption", "weight": 4, }, Object { - "group": "a11y-describe-contents", + "group": "a11y-audio-video", "id": "video-description", "weight": 3, }, - Object { - "id": "accesskeys", - "weight": 0, - }, Object { "id": "logical-tab-order", "weight": 0, @@ -999,35 +1000,35 @@ Object { "groups": Object { "a11y-aria": Object { "description": "These are opportunities to improve the usage of ARIA in your application which may enhance the experience for users of assistive technology, like a screen reader.", - "title": "ARIA Attributes Follow Best Practices", - }, - "a11y-color-contrast": Object { - "description": "These are opportunities to improve the legibility of your content.", - "title": "Color Contrast Is Satisfactory", + "title": "ARIA", }, - "a11y-correct-attributes": Object { - "description": "These are opportunities to improve the configuration of your HTML elements.", - "title": "Elements Use Attributes Correctly", + "a11y-audio-video": Object { + "description": "These are opportunities to provide alternative content for audio and video. This may improve the experience for users with hearing or vision impairments.", + "title": "Audio and video", }, - "a11y-describe-contents": Object { - "description": "These are opportunities to make your content easier to understand for a user of assistive technology, like a screen reader.", - "title": "Elements Describe Contents Well", + "a11y-best-practices": Object { + "description": "These items highlight common accessibility best practices.", + "title": "Best practices", }, - "a11y-element-names": Object { - "description": "These are opportunities to improve the semantics of the controls in your application. This may enhance the experience for users of assistive technology, like a screen reader.", - "title": "Elements Have Discernible Names", + "a11y-color-contrast": Object { + "description": "These are opportunities to improve the legibility of your content.", + "title": "Contrast", }, "a11y-language": Object { "description": "These are opportunities to improve the interpretation of your content by users in different locales.", - "title": "Page Specifies Valid Language", + "title": "Internationalization and localization", }, - "a11y-meta": Object { - "description": "These are opportunities to improve the user experience of your site.", - "title": "Meta Tags Used Properly", + "a11y-names-labels": Object { + "description": "These are opportunities to improve the semantics of the controls in your application. This may enhance the experience for users of assistive technology, like a screen reader.", + "title": "Names and labels", + }, + "a11y-navigation": Object { + "description": "These are opportunities to improve keyboard navigation in your application.", + "title": "Navigation", }, - "a11y-well-structured": Object { - "description": "These are opportunities to make sure your HTML is appropriately structured.", - "title": "Elements Are Well Structured", + "a11y-tables-lists": Object { + "description": "These are opportunities to to improve the experience of reading tabular or list data using assistive technology, like a screen reader.", + "title": "Tables and lists", }, "diagnostics": Object { "description": "More information about the performance of your application.", @@ -1248,35 +1249,35 @@ Object { "groups": Object { "a11y-aria": Object { "description": "These are opportunities to improve the usage of ARIA in your application which may enhance the experience for users of assistive technology, like a screen reader.", - "title": "ARIA Attributes Follow Best Practices", - }, - "a11y-color-contrast": Object { - "description": "These are opportunities to improve the legibility of your content.", - "title": "Color Contrast Is Satisfactory", + "title": "ARIA", }, - "a11y-correct-attributes": Object { - "description": "These are opportunities to improve the configuration of your HTML elements.", - "title": "Elements Use Attributes Correctly", + "a11y-audio-video": Object { + "description": "These are opportunities to provide alternative content for audio and video. This may improve the experience for users with hearing or vision impairments.", + "title": "Audio and video", }, - "a11y-describe-contents": Object { - "description": "These are opportunities to make your content easier to understand for a user of assistive technology, like a screen reader.", - "title": "Elements Describe Contents Well", + "a11y-best-practices": Object { + "description": "These items highlight common accessibility best practices.", + "title": "Best practices", }, - "a11y-element-names": Object { - "description": "These are opportunities to improve the semantics of the controls in your application. This may enhance the experience for users of assistive technology, like a screen reader.", - "title": "Elements Have Discernible Names", + "a11y-color-contrast": Object { + "description": "These are opportunities to improve the legibility of your content.", + "title": "Contrast", }, "a11y-language": Object { "description": "These are opportunities to improve the interpretation of your content by users in different locales.", - "title": "Page Specifies Valid Language", + "title": "Internationalization and localization", + }, + "a11y-names-labels": Object { + "description": "These are opportunities to improve the semantics of the controls in your application. This may enhance the experience for users of assistive technology, like a screen reader.", + "title": "Names and labels", }, - "a11y-meta": Object { - "description": "These are opportunities to improve the user experience of your site.", - "title": "Meta Tags Used Properly", + "a11y-navigation": Object { + "description": "These are opportunities to improve keyboard navigation in your application.", + "title": "Navigation", }, - "a11y-well-structured": Object { - "description": "These are opportunities to make sure your HTML is appropriately structured.", - "title": "Elements Are Well Structured", + "a11y-tables-lists": Object { + "description": "These are opportunities to to improve the experience of reading tabular or list data using assistive technology, like a screen reader.", + "title": "Tables and lists", }, "diagnostics": Object { "description": "More information about the performance of your application.", diff --git a/lighthouse-cli/test/fixtures/a11y/a11y_tester.html b/lighthouse-cli/test/fixtures/a11y/a11y_tester.html index cc7a20dbf5cd..4a8fbf988751 100644 --- a/lighthouse-cli/test/fixtures/a11y/a11y_tester.html +++ b/lighthouse-cli/test/fixtures/a11y/a11y_tester.html @@ -11,6 +11,11 @@ +

accesskeys

+
+ + +

aria-allowed-attr

`) are contained within `