source: trip-planner-front/node_modules/@angular/material/card/testing/card-harness.d.ts

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.5 KB
Line 
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 */
8import { HarnessPredicate, ContentContainerComponentHarness } from '@angular/cdk/testing';
9import { CardHarnessFilters } from './card-harness-filters';
10/** Selectors for different sections of the mat-card that can container user content. */
11export 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. */
18export 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}
Note: See TracBrowser for help on using the repository browser.