source: trip-planner-front/node_modules/@angular/material/tabs/testing/tab-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: 2.0 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, HarnessLoader, HarnessPredicate } from '@angular/cdk/testing';
9import { TabHarnessFilters } from './tab-harness-filters';
10/** Harness for interacting with a standard Angular Material tab-label in tests. */
11export declare class MatTabHarness extends ContentContainerComponentHarness<string> {
12 /** The selector for the host element of a `MatTab` instance. */
13 static hostSelector: string;
14 /**
15 * Gets a `HarnessPredicate` that can be used to search for a `MatTabHarness` that meets
16 * certain criteria.
17 * @param options Options for filtering which tab instances are considered a match.
18 * @return a `HarnessPredicate` configured with the given options.
19 */
20 static with(options?: TabHarnessFilters): HarnessPredicate<MatTabHarness>;
21 /** Gets the label of the tab. */
22 getLabel(): Promise<string>;
23 /** Gets the aria-label of the tab. */
24 getAriaLabel(): Promise<string | null>;
25 /** Gets the value of the "aria-labelledby" attribute. */
26 getAriaLabelledby(): Promise<string | null>;
27 /** Whether the tab is selected. */
28 isSelected(): Promise<boolean>;
29 /** Whether the tab is disabled. */
30 isDisabled(): Promise<boolean>;
31 /** Selects the given tab by clicking on the label. Tab cannot be selected if disabled. */
32 select(): Promise<void>;
33 /** Gets the text content of the tab. */
34 getTextContent(): Promise<string>;
35 /**
36 * Gets a `HarnessLoader` that can be used to load harnesses for components within the tab's
37 * content area.
38 * @deprecated Use `getHarness` or `getChildLoader` instead.
39 * @breaking-change 12.0.0
40 */
41 getHarnessLoaderForContent(): Promise<HarnessLoader>;
42 protected getRootHarnessLoader(): Promise<HarnessLoader>;
43 /** Gets the element id for the content of the current tab. */
44 private _getContentId;
45}
Note: See TracBrowser for help on using the repository browser.