source: trip-planner-front/node_modules/@angular/material/tree/testing/node-harness.d.ts@ 84d0fbb

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

initial commit

  • Property mode set to 100644
File size: 1.8 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 { TreeNodeHarnessFilters } from './tree-harness-filters';
10/** Harness for interacting with a standard Angular Material tree node. */
11export declare class MatTreeNodeHarness extends ContentContainerComponentHarness<string> {
12 /** The selector of the host element of a `MatTreeNode` instance. */
13 static hostSelector: string;
14 _toggle: import("@angular/cdk/testing").AsyncFactoryFn<import("@angular/cdk/testing").TestElement | null>;
15 /**
16 * Gets a `HarnessPredicate` that can be used to search for a tree node with specific attributes.
17 * @param options Options for narrowing the search
18 * @return a `HarnessPredicate` configured with the given options.
19 */
20 static with(options?: TreeNodeHarnessFilters): HarnessPredicate<MatTreeNodeHarness>;
21 /** Whether the tree node is expanded. */
22 isExpanded(): Promise<boolean>;
23 /** Whether the tree node is disabled. */
24 isDisabled(): Promise<boolean>;
25 /** Gets the level of the tree node. Note that this gets the aria-level and is 1 indexed. */
26 getLevel(): Promise<number>;
27 /** Gets the tree node's text. */
28 getText(): Promise<string>;
29 /** Toggles node between expanded/collapsed. Only works when node is not disabled. */
30 toggle(): Promise<void>;
31 /** Expands the node if it is collapsed. Only works when node is not disabled. */
32 expand(): Promise<void>;
33 /** Collapses the node if it is expanded. Only works when node is not disabled. */
34 collapse(): Promise<void>;
35}
Note: See TracBrowser for help on using the repository browser.