From 76f9d98d2225ec840a619fa54928fa299e0186b2 Mon Sep 17 00:00:00 2001 From: mmalerba Date: Tue, 12 Nov 2019 16:27:32 -0800 Subject: [PATCH] feat: add cdk/testing docs (#678) --- .../documentation-items.ts | 26 ++++++++++++++++++- .../src/app/shared/guide-items/guide-items.ts | 5 ++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/material.angular.io/src/app/shared/documentation-items/documentation-items.ts b/material.angular.io/src/app/shared/documentation-items/documentation-items.ts index 0cbe8911fabd..4e4fe370ad63 100644 --- a/material.angular.io/src/app/shared/documentation-items/documentation-items.ts +++ b/material.angular.io/src/app/shared/documentation-items/documentation-items.ts @@ -526,7 +526,8 @@ const DOCS: {[key: string]: DocCategory[]} = { name: 'Components', summary: 'Unstyled components with useful functionality.', items: [ - {id: 'stepper', + { + id: 'stepper', name: 'Stepper', summary: 'Presents content as steps through which to progress.', examples: [ @@ -552,6 +553,29 @@ const DOCS: {[key: string]: DocCategory[]} = { }, ] }, + { + id: 'testing', + name: 'Testing', + summary: 'Utilities for testing common components.', + items: [ + { + id: 'testing', + name: 'Testing', + summary: 'Utilities for testing common components.', + examples: [], + additionalApiDocs: [ + { + name: 'Testbed', + path: 'cdk-testing-testbed.html' + }, + { + name: 'Protractor', + path: 'cdk-testing-protractor.html' + } + ], + } + ] + } // TODO(jelbourn): re-add utilities and a11y as top-level categories once we can generate // their API docs with dgeni. Currently our setup doesn't generate API docs for constants // and standalone functions (much of the utilities) and we have no way of generating API diff --git a/material.angular.io/src/app/shared/guide-items/guide-items.ts b/material.angular.io/src/app/shared/guide-items/guide-items.ts index 96829832fac1..370910b53410 100644 --- a/material.angular.io/src/app/shared/guide-items/guide-items.ts +++ b/material.angular.io/src/app/shared/guide-items/guide-items.ts @@ -51,6 +51,11 @@ const GUIDES = [ id: 'creating-a-custom-stepper-using-the-cdk-stepper', name: 'Creating a custom stepper using the CdkStepper', document: '/docs-content/guides/creating-a-custom-stepper-using-the-cdk-stepper.html' + }, + { + id: 'using-component-harnesses', + name: `Using Angular Material's component harnesses in your tests`, + document: '/docs-content/guides/using-component-harnesses.html' } ];