Skip to content

Commit 76f9d98

Browse files
authoredNov 13, 2019
feat: add cdk/testing docs (#678)
1 parent 482709a commit 76f9d98

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
 

‎material.angular.io/src/app/shared/documentation-items/documentation-items.ts

+25-1
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,8 @@ const DOCS: {[key: string]: DocCategory[]} = {
526526
name: 'Components',
527527
summary: 'Unstyled components with useful functionality.',
528528
items: [
529-
{id: 'stepper',
529+
{
530+
id: 'stepper',
530531
name: 'Stepper',
531532
summary: 'Presents content as steps through which to progress.',
532533
examples: [
@@ -552,6 +553,29 @@ const DOCS: {[key: string]: DocCategory[]} = {
552553
},
553554
]
554555
},
556+
{
557+
id: 'testing',
558+
name: 'Testing',
559+
summary: 'Utilities for testing common components.',
560+
items: [
561+
{
562+
id: 'testing',
563+
name: 'Testing',
564+
summary: 'Utilities for testing common components.',
565+
examples: [],
566+
additionalApiDocs: [
567+
{
568+
name: 'Testbed',
569+
path: 'cdk-testing-testbed.html'
570+
},
571+
{
572+
name: 'Protractor',
573+
path: 'cdk-testing-protractor.html'
574+
}
575+
],
576+
}
577+
]
578+
}
555579
// TODO(jelbourn): re-add utilities and a11y as top-level categories once we can generate
556580
// their API docs with dgeni. Currently our setup doesn't generate API docs for constants
557581
// and standalone functions (much of the utilities) and we have no way of generating API

‎material.angular.io/src/app/shared/guide-items/guide-items.ts

+5
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ const GUIDES = [
5151
id: 'creating-a-custom-stepper-using-the-cdk-stepper',
5252
name: 'Creating a custom stepper using the CdkStepper',
5353
document: '/docs-content/guides/creating-a-custom-stepper-using-the-cdk-stepper.html'
54+
},
55+
{
56+
id: 'using-component-harnesses',
57+
name: `Using Angular Material's component harnesses in your tests`,
58+
document: '/docs-content/guides/using-component-harnesses.html'
5459
}
5560
];
5661

0 commit comments

Comments
 (0)
Please sign in to comment.