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, ComponentHarnessConstructor, ContentContainerComponentHarness } from '@angular/cdk/testing';
|
---|
9 | import { CellHarnessFilters } from './table-harness-filters';
|
---|
10 | /** Harness for interacting with a standard Angular Material table cell. */
|
---|
11 | export 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. */
|
---|
27 | export 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. */
|
---|
39 | export 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 | }
|
---|