source: trip-planner-front/node_modules/@angular/material/grid-list/testing/grid-tile-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.9 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 { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
9import { GridTileHarnessFilters } from './grid-list-harness-filters';
10/** Selectors for the various `mat-grid-tile` sections that may contain user content. */
11export declare const enum MatGridTileSection {
12 HEADER = ".mat-grid-tile-header",
13 FOOTER = ".mat-grid-tile-footer"
14}
15/** Harness for interacting with a standard `MatGridTitle` in tests. */
16export declare class MatGridTileHarness extends ContentContainerComponentHarness<MatGridTileSection> {
17 /** The selector for the host element of a `MatGridTile` instance. */
18 static hostSelector: string;
19 /**
20 * Gets a `HarnessPredicate` that can be used to search for a `MatGridTileHarness`
21 * that meets certain criteria.
22 * @param options Options for filtering which dialog instances are considered a match.
23 * @return a `HarnessPredicate` configured with the given options.
24 */
25 static with(options?: GridTileHarnessFilters): HarnessPredicate<MatGridTileHarness>;
26 private _header;
27 private _footer;
28 private _avatar;
29 /** Gets the amount of rows that the grid-tile takes up. */
30 getRowspan(): Promise<number>;
31 /** Gets the amount of columns that the grid-tile takes up. */
32 getColspan(): Promise<number>;
33 /** Whether the grid-tile has a header. */
34 hasHeader(): Promise<boolean>;
35 /** Whether the grid-tile has a footer. */
36 hasFooter(): Promise<boolean>;
37 /** Whether the grid-tile has an avatar. */
38 hasAvatar(): Promise<boolean>;
39 /** Gets the text of the header if present. */
40 getHeaderText(): Promise<string | null>;
41 /** Gets the text of the footer if present. */
42 getFooterText(): Promise<string | null>;
43}
Note: See TracBrowser for help on using the repository browser.