source: trip-planner-front/node_modules/@angular/material/table/testing/cell-harness.d.ts@ 1ad8e64

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

initial commit

  • Property mode set to 100644
File size: 2.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, ComponentHarnessConstructor, ContentContainerComponentHarness } from '@angular/cdk/testing';
9import { CellHarnessFilters } from './table-harness-filters';
10/** Harness for interacting with a standard Angular Material table cell. */
11export declare class MatCellHarness extends ContentContainerComponentHarness {
12 /** The selector for the host element of a `MatCellHarness` instance. */
13 static hostSelector: string;
14 /**
15 * Gets a `HarnessPredicate` that can be used to search for a table cell with specific attributes.
16 * @param options Options for narrowing the search
17 * @return a `HarnessPredicate` configured with the given options.
18 */
19 static with(options?: CellHarnessFilters): HarnessPredicate<MatCellHarness>;
20 /** Gets the cell's text. */
21 getText(): Promise<string>;
22 /** Gets the name of the column that the cell belongs to. */
23 getColumnName(): Promise<string>;
24 protected static _getCellPredicate<T extends MatCellHarness>(type: ComponentHarnessConstructor<T>, options: CellHarnessFilters): HarnessPredicate<T>;
25}
26/** Harness for interacting with a standard Angular Material table header cell. */
27export declare class MatHeaderCellHarness extends MatCellHarness {
28 /** The selector for the host element of a `MatHeaderCellHarness` instance. */
29 static hostSelector: string;
30 /**
31 * Gets a `HarnessPredicate` that can be used to search for
32 * a table header cell with specific attributes.
33 * @param options Options for narrowing the search
34 * @return a `HarnessPredicate` configured with the given options.
35 */
36 static with(options?: CellHarnessFilters): HarnessPredicate<MatHeaderCellHarness>;
37}
38/** Harness for interacting with a standard Angular Material table footer cell. */
39export declare class MatFooterCellHarness extends MatCellHarness {
40 /** The selector for the host element of a `MatFooterCellHarness` instance. */
41 static hostSelector: string;
42 /**
43 * Gets a `HarnessPredicate` that can be used to search for
44 * a table footer cell with specific attributes.
45 * @param options Options for narrowing the search
46 * @return a `HarnessPredicate` configured with the given options.
47 */
48 static with(options?: CellHarnessFilters): HarnessPredicate<MatFooterCellHarness>;
49}
Note: See TracBrowser for help on using the repository browser.