source: trip-planner-front/node_modules/@angular/material/list/testing/action-list-harness.d.ts@ 8d391a1

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

initial commit

  • Property mode set to 100644
File size: 2.2 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 } from '@angular/cdk/testing';
9import { MatListHarnessBase } from './list-harness-base';
10import { ActionListHarnessFilters, ActionListItemHarnessFilters } from './list-harness-filters';
11import { MatListItemHarnessBase } from './list-item-harness-base';
12/** Harness for interacting with a standard mat-action-list in tests. */
13export declare class MatActionListHarness extends MatListHarnessBase<typeof MatActionListItemHarness, MatActionListItemHarness, ActionListItemHarnessFilters> {
14 /** The selector for the host element of a `MatActionList` instance. */
15 static hostSelector: string;
16 /**
17 * Gets a `HarnessPredicate` that can be used to search for a `MatActionListHarness` that meets
18 * certain criteria.
19 * @param options Options for filtering which action list instances are considered a match.
20 * @return a `HarnessPredicate` configured with the given options.
21 */
22 static with(options?: ActionListHarnessFilters): HarnessPredicate<MatActionListHarness>;
23 _itemHarness: typeof MatActionListItemHarness;
24}
25/** Harness for interacting with an action list item. */
26export declare class MatActionListItemHarness extends MatListItemHarnessBase {
27 /** The selector for the host element of a `MatListItem` instance. */
28 static hostSelector: string;
29 /**
30 * Gets a `HarnessPredicate` that can be used to search for a `MatActionListItemHarness` that
31 * meets certain criteria.
32 * @param options Options for filtering which action list item instances are considered a match.
33 * @return a `HarnessPredicate` configured with the given options.
34 */
35 static with(options?: ActionListItemHarnessFilters): HarnessPredicate<MatActionListItemHarness>;
36 /** Clicks on the action list item. */
37 click(): Promise<void>;
38 /** Focuses the action list item. */
39 focus(): Promise<void>;
40 /** Blurs the action list item. */
41 blur(): Promise<void>;
42 /** Whether the action list item is focused. */
43 isFocused(): Promise<boolean>;
44}
Note: See TracBrowser for help on using the repository browser.