[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { HarnessPredicate, ContentContainerComponentHarness } from '@angular/cdk/testing';
|
---|
| 9 | import { CardHarnessFilters } from './card-harness-filters';
|
---|
| 10 | /** Selectors for different sections of the mat-card that can container user content. */
|
---|
| 11 | export declare const enum MatCardSection {
|
---|
| 12 | HEADER = ".mat-card-header",
|
---|
| 13 | CONTENT = ".mat-card-content",
|
---|
| 14 | ACTIONS = ".mat-card-actions",
|
---|
| 15 | FOOTER = ".mat-card-footer"
|
---|
| 16 | }
|
---|
| 17 | /** Harness for interacting with a standard mat-card in tests. */
|
---|
| 18 | export declare class MatCardHarness extends ContentContainerComponentHarness<MatCardSection> {
|
---|
| 19 | /** The selector for the host element of a `MatCard` instance. */
|
---|
| 20 | static hostSelector: string;
|
---|
| 21 | /**
|
---|
| 22 | * Gets a `HarnessPredicate` that can be used to search for a `MatCardHarness` that meets
|
---|
| 23 | * certain criteria.
|
---|
| 24 | * @param options Options for filtering which card instances are considered a match.
|
---|
| 25 | * @return a `HarnessPredicate` configured with the given options.
|
---|
| 26 | */
|
---|
| 27 | static with(options?: CardHarnessFilters): HarnessPredicate<MatCardHarness>;
|
---|
| 28 | private _title;
|
---|
| 29 | private _subtitle;
|
---|
| 30 | /** Gets all of the card's content as text. */
|
---|
| 31 | getText(): Promise<string>;
|
---|
| 32 | /** Gets the cards's title text. */
|
---|
| 33 | getTitleText(): Promise<string>;
|
---|
| 34 | /** Gets the cards's subtitle text. */
|
---|
| 35 | getSubtitleText(): Promise<string>;
|
---|
| 36 | }
|
---|